1
0
Fork 0
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:
ed 2018-01-11 16:57:27 +00:00
parent 61418912bc
commit 0a15be729e

View file

@ -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;
} }