<AWT Dev> [9] Review request for 8150844 [hidpi] [macosx] should -Dsun.java2d.uiScale be taken into account for OS X?
Alexander Scherbatiy
alexandr.scherbatiy at oracle.com
Wed Mar 16 12:45:32 UTC 2016
On 3/16/2016 3:21 PM, Sergey Bylokhov wrote:
> So fast, I just prepared the similar fix....
>
> Why the scale is "1" when isUIScaleEnabled is not enabled?
Because sun.java2d.uiScale.enabled property explicitly disables the
HiDPI graphics support.
Thanks,
Alexandr.
>
> 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.
>
>
More information about the awt-dev
mailing list