-
Bug
-
Resolution: Unresolved
-
P4
-
9, 11, 14, 15
-
x86_64
-
windows_10
ADDITIONAL SYSTEM INFORMATION :
josm-found
A DESCRIPTION OF THE PROBLEM :
Assume a Windows system with two screens.
Screen 1 has set a scaling of 100%, screen 2 has set a scaling of 200%.
If screen 1 is set as the primary screen (in the Windows display settings), getBestCursorSize() returns
java.awt.Dimension[width=64,height=64]
If screen 2 is set as the secondary screen, getBestCursorSize() returns 32x32.
java.awt.Dimension[width=32,height=32]
As no screen resolution has changed, it is surprising that the result of getBestCursorSize changes.
This problem is closely related to JDK-8240568. If the primary screen has the greater scaling, the cursor is normal/double sized if the primary screen has the greater scaling, and is half/normal sized if the primary screen has the lesser scaling).
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Set the respective Windows settings and run the submitted test program.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
java.awt.Dimension[width=64,height=64] in both cases, to support the greatest scaling value well.
ACTUAL -
java.awt.Dimension[width=32,height=32] in the case where the low-scaled screen is set as the primary one, java.awt.Dimension[width=64,height=64] otherwise.
---------- BEGIN SOURCE ----------
import java.awt.Dimension;
import java.awt.Toolkit;
public class BestCursorSize {
public static void main(String[] args)
{
Dimension bestCursorSize = Toolkit.getDefaultToolkit().getBestCursorSize(32, 32);
System.out.println("" + bestCursorSize);
}
}
---------- END SOURCE ----------
FREQUENCY : always
josm-found
A DESCRIPTION OF THE PROBLEM :
Assume a Windows system with two screens.
Screen 1 has set a scaling of 100%, screen 2 has set a scaling of 200%.
If screen 1 is set as the primary screen (in the Windows display settings), getBestCursorSize() returns
java.awt.Dimension[width=64,height=64]
If screen 2 is set as the secondary screen, getBestCursorSize() returns 32x32.
java.awt.Dimension[width=32,height=32]
As no screen resolution has changed, it is surprising that the result of getBestCursorSize changes.
This problem is closely related to JDK-8240568. If the primary screen has the greater scaling, the cursor is normal/double sized if the primary screen has the greater scaling, and is half/normal sized if the primary screen has the lesser scaling).
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Set the respective Windows settings and run the submitted test program.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
java.awt.Dimension[width=64,height=64] in both cases, to support the greatest scaling value well.
ACTUAL -
java.awt.Dimension[width=32,height=32] in the case where the low-scaled screen is set as the primary one, java.awt.Dimension[width=64,height=64] otherwise.
---------- BEGIN SOURCE ----------
import java.awt.Dimension;
import java.awt.Toolkit;
public class BestCursorSize {
public static void main(String[] args)
{
Dimension bestCursorSize = Toolkit.getDefaultToolkit().getBestCursorSize(32, 32);
System.out.println("" + bestCursorSize);
}
}
---------- END SOURCE ----------
FREQUENCY : always
- relates to
-
JDK-8240568 HiDPI custom cursor is twice as large on regular secondary screen
- Open