SDL: Move getDisplayDpiFromSdl and getDpiScalingFactor into the SdlWindow class
This commit is contained in:
parent
617f27b816
commit
c4699cb280
9 changed files with 95 additions and 73 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue