hidpi support in monocle
David Hill
David.Hill at Oracle.com
Thu Feb 12 16:00:41 UTC 2015
On 2/12/15, 9:26 AM, Johan Vos wrote:
> Hi,
>
> Unless I'm missing something, there is no support for HiDPI in Monocle?
> The staticScreen_getScreens() method in Monocle always calls the Screen
> constructor with the scale parameter set to 1.0f.
>
> It seems to me the scale factor can be retrieved from the NativeScreen,
> where it would by default return 1.0f.
> That would allow e.g. the AndroidScreen to call into the native layer and
> obtain the real scale factor.
>
> I can create an issue for this, unless I overlooked something.
>
> - Johan
Go ahead and create an issue, as I think you are not missing anything. Oracle has not encountered a use case with Monocle for this, just like we have not enountered one for screen rotation (though I really did expect to need to do that sooner, rather than later).
Fetching the value from NativeScreen sounds right.
Dave
--
David Hill<David.Hill at Oracle.com>
Java Embedded Development
"A man's feet should be planted in his country, but his eyes should survey the world."
-- George Santayana (1863 - 1952)
More information about the openjfx-dev
mailing list