Properly use SDL's new Windows dpi scaling hint.

Fixes #1814.
Fixes #1421.
This commit is contained in:
Alex Szpakowski
2022-07-03 17:03:58 -03:00
parent 814aaa95cd
commit d586d18474
2 changed files with 22 additions and 6 deletions
+5
View File
@@ -28,8 +28,13 @@ namespace window
static bool highDPIAllowed = false;
// TODO: find a cleaner way to do this...
// The window backend (e.g. love.window.sdl) is expected to implement this.
void setHighDPIAllowedImplementation(bool enable);
void setHighDPIAllowed(bool enable)
{
setHighDPIAllowedImplementation(enable);
highDPIAllowed = enable;
}