Skip to content

Commit

Permalink
HiDPIUtils: javadoc fixes for previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
DevCharly committed Jul 5, 2024
1 parent 5ff99bd commit e06475b
Showing 1 changed file with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -358,13 +358,14 @@ public static void repaint( Component c, Rectangle r ) {
* repaint right and/or bottom 1px edge of component.
* <p>
* The problem may occur under following conditions:
* <li>using Java 9 or later
* <li>system scale factor is 125%, 175%, 225%, ...
* (Windows only; Java on macOS and Linux does not support fractional scale factors)
* <li>repaint whole component or right/bottom area of component
* <li>component is opaque; or component is contained in a opaque container
* that has same right/bottom bounds as component
* <li>component has bounds that Java/Swing scales different when repainting components
* <ul>
* <li>using Java 9 or later
* <li>system scale factor is 125%, 175%, 225%, ...
* (Windows only; Java on macOS and Linux does not support fractional scale factors)
* <li>repaint whole component or right/bottom area of component
* <li>component is opaque; or component is contained in a opaque container
* that has same right/bottom bounds as component
* <li>component has bounds that Java/Swing scales different when repainting components
* </ul>
*
* @since 3.5
Expand Down Expand Up @@ -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;
* }</pre>
* 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 ) {
Expand Down

0 comments on commit e06475b

Please sign in to comment.