LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: darkyellow on January 29, 2018, 14:39:09

Title: [RFE] handle hdpi better when the operating system compensates (windows)
Post by: darkyellow on January 29, 2018, 14:39:09
Hi

There have been plenty of posts talking g about Mac OS and how it handles hdpi monitors, windows also does a similar thing where you can make the display larger. If you load an ide in compatibility mode, when you run an app and try and place a window on the screen it won't be where you expect it.

Consider this a low priority request because it only effects running programs in compatibility mode and compatibility mode should only be used for < java 8 because java 9 is hdpi aware.
Title: Re: [RFE] handle hdpi better when the operating system compensates (windows)
Post by: spasi on January 29, 2018, 14:59:46
There is a workaround you can use on Java 8 that works decently without doing anything funny with Java itself. Read this comment (https://github.com/LWJGL/lwjgl3/blob/master/modules/samples/src/test/java/org/lwjgl/demo/stb/Vorbis.java#L86) and try the Vorbis demo on Java 8 to see it in action.