SDL: Move getDisplayDpiFromSdl and getDpiScalingFactor into the SdlWindow class

This commit is contained in:
Cameron Cawley 2021-08-14 14:33:05 +01:00 committed by Thierry Crozat
parent 617f27b816
commit c4699cb280
9 changed files with 95 additions and 73 deletions

View file

@ -87,6 +87,13 @@ public:
*/
Common::Rect getDesktopResolution();
void getDisplayDpi(float *dpi, float *defaultDpi) const;
/**
* Returns the scaling mode based on the display DPI
*/
virtual float getDpiScalingFactor() const;
bool mouseIsGrabbed() const {
#if SDL_VERSION_ATLEAST(2, 0, 0)
if (_window) {