mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-10 22:17:13 -06:00
HiDPI: fixed occasional wrong repaint areas when using HiDPIUtils.installHiDPIRepaintManager() (see PR #864)
This commit is contained in:
@@ -11,6 +11,8 @@ FlatLaf Change Log
|
||||
- Popup: Fixed `UnsupportedOperationException: PERPIXEL_TRANSLUCENT translucency
|
||||
is not supported` exception on Haiku OS when showing popup (partly) outside of
|
||||
window. (issue #869)
|
||||
- HiDPI: Fixed occasional wrong repaint areas when using
|
||||
`HiDPIUtils.installHiDPIRepaintManager()`. (see PR #864)
|
||||
|
||||
|
||||
## 3.5
|
||||
|
||||
@@ -521,12 +521,12 @@ public class HiDPIUtils
|
||||
int x2 = x + c.getX();
|
||||
int y2 = y + c.getY();
|
||||
for( Component p = c.getParent(); p != null; p = p.getParent() ) {
|
||||
x2 += p.getX();
|
||||
y2 += p.getY();
|
||||
if( x2 + width < p.getWidth() && y2 + height < p.getHeight() && p instanceof JComponent ) {
|
||||
callback.addDirtyRegion( (JComponent) p, x2, y2, width, height );
|
||||
return;
|
||||
}
|
||||
x2 += p.getX();
|
||||
y2 += p.getY();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user