mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-28 02:30:05 +00:00
OpenGL: Apply Component's transform when invalidating
This commit is contained in:
parent
61418912bc
commit
0a15be729e
1 changed files with 3 additions and 1 deletions
|
|
@ -157,7 +157,9 @@ public:
|
||||||
|
|
||||||
bool invalidate (const Rectangle<int>& area) override
|
bool invalidate (const Rectangle<int>& area) override
|
||||||
{
|
{
|
||||||
validArea.subtract (area * scale);
|
auto scaled = area.toFloat() * scale;
|
||||||
|
|
||||||
|
validArea.subtract (scaled.transformedBy (transform).getSmallestIntegerContainer());
|
||||||
triggerRepaint();
|
triggerRepaint();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue