<AWT Dev> [9] Review request for 8150844 [hidpi] [macosx] should -Dsun.java2d.uiScale be taken into account for OS X?

Sergey Bylokhov Sergey.Bylokhov at oracle.com
Wed Mar 16 12:21:35 UTC 2016


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.


More information about the awt-dev mailing list