Skip to content

Commit

Permalink
Fix screen scaling
Browse files Browse the repository at this point in the history
  • Loading branch information
ry755 committed May 13, 2024
1 parent b7b8099 commit d69cc85
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/screen.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ void ScreenInit() {
exit(1);
}

SDL_RenderSetLogicalSize(ScreenRenderer, WindowWidth, WindowHeight);

WindowRect = (SDL_Rect) {
.w = WindowWidth,
.h = WindowHeight
Expand Down

0 comments on commit d69cc85

Please sign in to comment.