Dpi fixes (#449)

* Potential fix for DPI scaling.

* Show window size in pixels while in Fullscreen mode.
This commit is contained in:
Darío
2025-02-22 10:12:56 -03:00
committed by GitHub
parent c90d1fcb7b
commit 03ef34ffe8
5 changed files with 38 additions and 18 deletions

View File

@@ -378,6 +378,11 @@ SDL_Rect GameWindow::GetDimensions()
return rect;
}
void GameWindow::GetSizeInPixels(int *w, int *h)
{
SDL_GetWindowSizeInPixels(s_pWindow, w, h);
}
void GameWindow::SetDimensions(int w, int h, int x, int y)
{
s_width = w;