diff --git a/flatlaf-core/src/main/java/com/formdev/flatlaf/util/HiDPIUtils.java b/flatlaf-core/src/main/java/com/formdev/flatlaf/util/HiDPIUtils.java index 4b6f8274e..57b842a0a 100644 --- a/flatlaf-core/src/main/java/com/formdev/flatlaf/util/HiDPIUtils.java +++ b/flatlaf-core/src/main/java/com/formdev/flatlaf/util/HiDPIUtils.java @@ -358,13 +358,14 @@ public static void repaint( Component c, Rectangle r ) { * repaint right and/or bottom 1px edge of component. *

* The problem may occur under following conditions: - *

  • using Java 9 or later - *
  • system scale factor is 125%, 175%, 225%, ... - * (Windows only; Java on macOS and Linux does not support fractional scale factors) - *
  • repaint whole component or right/bottom area of component - *
  • component is opaque; or component is contained in a opaque container - * that has same right/bottom bounds as component - *
  • component has bounds that Java/Swing scales different when repainting components + * * * @since 3.5 @@ -431,7 +432,7 @@ public static void repaint( Component c, int x, int y, int width, int height ) { * int usrX = (int) Math.ceil( (x * scale) - 0.5 ); * int usrWidth = ((int) Math.ceil( ((x + width) * scale) - 0.5 )) - usrX; * } - * X/Y coordinates are always round down for {@code devClip}, but round up for {@code usrClip}. + * X/Y coordinates are always rounded down for {@code devClip}, but rounded up for {@code usrClip}. * Width/height calculation is also different. */ private static boolean needsSpecialRepaint( Component c, int x, int y, int width, int height ) {