mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-06 22:10:54 +03:00
HiDPIUtils: javadoc fixes for previous commit
This commit is contained in:
@@ -358,6 +358,7 @@ public class HiDPIUtils
|
|||||||
* repaint right and/or bottom 1px edge of component.
|
* repaint right and/or bottom 1px edge of component.
|
||||||
* <p>
|
* <p>
|
||||||
* The problem may occur under following conditions:
|
* The problem may occur under following conditions:
|
||||||
|
* <ul>
|
||||||
* <li>using Java 9 or later
|
* <li>using Java 9 or later
|
||||||
* <li>system scale factor is 125%, 175%, 225%, ...
|
* <li>system scale factor is 125%, 175%, 225%, ...
|
||||||
* (Windows only; Java on macOS and Linux does not support fractional scale factors)
|
* (Windows only; Java on macOS and Linux does not support fractional scale factors)
|
||||||
@@ -431,7 +432,7 @@ public class HiDPIUtils
|
|||||||
* int usrX = (int) Math.ceil( (x * scale) - 0.5 );
|
* int usrX = (int) Math.ceil( (x * scale) - 0.5 );
|
||||||
* int usrWidth = ((int) Math.ceil( ((x + width) * scale) - 0.5 )) - usrX;
|
* int usrWidth = ((int) Math.ceil( ((x + width) * scale) - 0.5 )) - usrX;
|
||||||
* }</pre>
|
* }</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.
|
* Width/height calculation is also different.
|
||||||
*/
|
*/
|
||||||
private static boolean needsSpecialRepaint( Component c, int x, int y, int width, int height ) {
|
private static boolean needsSpecialRepaint( Component c, int x, int y, int width, int height ) {
|
||||||
|
|||||||
Reference in New Issue
Block a user