mirror of
https://github.com/hedge-dev/UnleashedRecomp
synced 2026-06-09 04:40:26 -04:00
Dpi fixes (#449)
* Potential fix for DPI scaling. * Show window size in pixels while in Fullscreen mode.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user