So fast, I just prepared the similar fix....
Why the scale is "1" when isUIScaleEnabled is not enabled?
252 private void initScaleFactor() {
253 if (SunGraphicsEnvironment.isUIScaleEnabled()) {
254 double debugScale =
SunGraphicsEnvironment.getDebugScale();
255 scale = (int) (debugScale >= 1
256 ? Math.round(debugScale)
257 : nativeGetScaleFactor(displayID));
258 } else {
259 scale = 1;
260 }
261 }
262
On 16.03.16 11:29, Alexander Scherbatiy wrote:
Hello,
Could you review the fix:
bug: https://bugs.openjdk.java.net/browse/JDK-8150844
webrev: http://cr.openjdk.java.net/~alexsch/8150844/webrev.00
The sun.java2d.uiScale property is now used in CGraphicsDevice.
The requested tests are updated.
Thanks,
Alexandr.
--
Best regards, Sergey.