1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +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
{
validArea.subtract (area * scale);
auto scaled = area.toFloat() * scale;
validArea.subtract (scaled.transformedBy (transform).getSmallestIntegerContainer());
triggerRepaint();
return false;
}