Login  Register

ScreenScaling ignored

Posted by Roland Schützig on Sep 16, 2021; 3:24am
URL: https://forum.jogamp.org/ScreenScaling-ignored-tp4041281.html

The SimpleUniverse seems to ignore the ScreenScaling. I have worked my way through all the "HelloUniverse" examples and I could not figure out how to modify the screen scaling.
I am using my Windows 10 machine with a screen scaling of 250%. Any graphic is shown on the JFrame in the lower/left corner with a factor of 2.5 smaller than the size of the JFrame.
Following the API specification I tried (this is Kotlin code):
        universe.viewingPlatform.viewPlatform.viewAttachPolicy = NOMINAL_SCREEN
        universe.viewingPlatform.viewers[0].view.screenScalePolicy= SCALE_EXPLICIT
        universe.viewingPlatform.viewers[0].view.screenScale=2.5

But it does not work and I have run out of ideas.
Does anybody have a suggestion (or better: a working example)?

Roland