Fix native resolution detection on high DPI wayland systems

This commit is contained in:
Cameron Gutman
2022-08-16 00:25:49 -05:00
parent aa7d5fa924
commit b0804ce048
4 changed files with 24 additions and 9 deletions

View File

@@ -29,7 +29,7 @@ public:
void screenSpaceToNormalizedDeviceCoords(SDL_Rect* src, SDL_FRect* dst, int viewportWidth, int viewportHeight);
static
bool getRealDesktopMode(int displayIndex, SDL_DisplayMode* mode);
bool getNativeDesktopMode(int displayIndex, SDL_DisplayMode* mode);
static
int getDisplayRefreshRate(SDL_Window* window);