Skip to content

Implement system-scaled HiDPI support (SDL_WINDOW_ALLOW_HIGHDPI - Wayland, macOS, etc)

Val Packett requested to merge valpackett/openmw:hidpi into master

HiDPI support e.g. on Wayland means that the desktop works in logical pixels (SDL_GetWindowSize), but rendering happens in physical pixels (SDL_GL_GetDrawableSize).

This implementation uses physical pixels inside the engine, so that the resolution listed in the GUI and config files would be the physical one, which is what anyone would expect with games.


Please test on macOS! (With windowed mode)

Edited by Val Packett

Merge request reports