mirror of
https://github.com/love2d/love.git
synced 2026-08-14 01:20:56 +02:00
Properly use SDL's new Windows dpi scaling hint.
Fixes #1814. Fixes #1421.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user