HomeWildfire Games

Adds HiDPI mode for testing. HiDPI on Windows isn't supported in SDL yet. So we…

Description

Adds HiDPI mode for testing. HiDPI on Windows isn't supported in SDL yet. So we use a custom code.

Differential Revision: https://code.wildfiregames.com/D4076

Event Timeline

Stan added a subscriber: Stan.Jun 5 2021, 9:16 PM
Stan added inline comments.
/ps/trunk/binaries/data/config/default.cfg
56

only on windows?

/ps/trunk/source/ps/VideoMode.cpp
73

Should use OS_WIN for now. the config option might also make it look like it's supported for other oses, which isn't the case :/

vladislavbelov added inline comments.Jun 5 2021, 9:21 PM
/ps/trunk/binaries/data/config/default.cfg
56

No, everywhere.

/ps/trunk/source/ps/VideoMode.cpp
73

It enables HiDPI for all platform, so no need to use OS_WIN. And SDL_WINDOW_ALLOW_HIGHDPI doesn't work on Windows.