conrod icon indicating copy to clipboard operation
conrod copied to clipboard

Resolution scaling

Open zendurix opened this issue 4 years ago • 1 comments

There is problem when system option - resolution scaling is different than 100% - for example when drawing point path in corner of the screen: 4K (3840x2160), scale 200% - no curve displayed 4K (3840x2160), scale 100% - curve is visible Full HD (1920x1080), scale 200% - no curve displayed Full HD (1920x1080), scale 125% - no curve displayed Full HD (1920x1080), scale 100% - curve is visible This bug occurs on both Linux and Windows. Is there any way to get info about system resolution scaling from conrod?

zendurix avatar May 27 '20 08:05 zendurix

The built-in backends of Conrod does support high DPI scaling and it does work for me. All coordinates in Conrod are in "logical pixels", as in it already takes into account of the scaling factor. For example, if your screen is 3840x2160 with 200% scaling and your Conrod GUI is running in fullscreen, then in Conrod the window size is 1920x1080.

It can be different if you are writing your own backend.

Do you have an example of your code (preferably a minimal working example) which fails with scaling?

alvinhochun avatar Aug 25 '20 10:08 alvinhochun