1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-27 02:20:05 +00:00

Windows: Invalidate entire window when custom scale factor changes

This fixes a bug where the window area intersecting the old and new
sizes would not be repainted correctly.
This commit is contained in:
reuk 2026-01-20 16:42:38 +00:00
parent d371a31b78
commit b4144aa78c
No known key found for this signature in database

View file

@ -2036,6 +2036,7 @@ public:
if (approximatelyEqual (prev, next))
return;
InvalidateRect (hwnd, nullptr, FALSE);
scaleFactorListeners.call ([&] (ScaleFactorListener& l) { l.nativeScaleFactorChanged (next); });
}