[OpenJDK 2D-Dev] [9] Review request for 8073320 Windows HiDPI Graphics support
Jim Graham
james.graham at oracle.com
Fri Apr 1 02:24:26 UTC 2016
Hi Alexandr,
Is there a bug filed to upgrade JLightweightFrame to allow non-integer
(and X/Y) scales? We'd need this capability to implement "Swing
embedded in FX" correctly on Win8.1+...
...jim
On 9/22/2015 2:33 AM, Alexander Scherbatiy wrote:
>
> Hello,
>
> Could you review the fix:
> bug: https://bugs.openjdk.java.net/browse/JDK-8073320
> webrev: http://cr.openjdk.java.net/~alexsch/8073320/webrev.00
>
> This is an initial part of the HiDPI Graphics support on Windows for
> the JEP 263: HiDPI Graphics on Windows and Linux
> http://openjdk.java.net/jeps/263
>
> - scale factors are added to surface dates
> - window size, events coordinates and font are scaled on native side
> - backup buffered image is scaled in SunVolatileImage
> - AwtRobot MouseMove() and GetRGBPixels() methods are updated
> - GetDpiForMonitor function is used to query the specified monitor
> for the horizontal and vertical DPI values.
> If it is not available ID2D1Factory::GetDesktopDpi method is used
> instead.
> - "sun.java2d.uiScale.enabled", "sun.java2d.win.uiScale",
> "sun.java2d.win.uiScaleX", and "sun.java2d.win.uiScaleY" options are
> added for the testing purposes.
>
> Thanks,
> Alexandr.
>
More information about the 2d-dev
mailing list