On 7/5/2016 9:59 PM, Semyon Sadetsky wrote:
Hello,
Please review fix for JDK9:
bug: https://bugs.openjdk.java.net/browse/JDK-8149115
webrev: http://cr.openjdk.java.net/~ssadetsky/8149115/webrev.00/
Currently the hidpi support on linux only reads GDK_SCALE environment
variable to get the native scale. Although, Gnome3 and Unity DE use
own settings to control the interface scale. The fix adds possibility
to read those settings to make java apps hidpi scale similar to the
native apps. Currently only integer scale values are supported. If
native scale is not an integer value it is rounded to the nearest
integer.
systemScale.c
Should the while loop have a break statement in the
getDesktopScale(...) method?
Thanks,
Alexandr.
--Semyon