Skip to content

Commit 7dea1b3

Browse files
committed
Fix scaling on retina displays, to avoid using only a corner of the screen for content
1 parent bfe5cc4 commit 7dea1b3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ui/Window.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ bool UI::Window::init() {
7777
return false;
7878
}
7979

80+
SDL_RenderSetLogicalSize(renderer, WIDTH, HEIGHT); // Fix scaling on retina displays
81+
8082
return true;
8183
}
8284

0 commit comments

Comments
 (0)