diff --git a/src/app.c b/src/app.c index fcc9acc..c67c289 100644 --- a/src/app.c +++ b/src/app.c @@ -431,6 +431,8 @@ int app_init(App *app) { SDL_WINDOW_SHOWN); app->renderer = SDL_CreateRenderer(app->window, -1, SDL_RENDERER_ACCELERATED | SDL_RENDERER_PRESENTVSYNC); + SDL_RenderSetLogicalSize(app->renderer, WINDOW_WIDTH, WINDOW_HEIGHT); + if (!app->window || !app->renderer) { fprintf(stderr, "SDL window or renderer creation failed: %s\n", SDL_GetError()); return -1; @@ -488,10 +490,9 @@ void app_run(App *app) { break; } - if (SDL_GetRendererOutputSize(app->renderer, &output_width, &output_height) != 0) { - output_width = WINDOW_WIDTH; - output_height = WINDOW_HEIGHT; - } + (void)SDL_GetRendererOutputSize(app->renderer, &output_width, &output_height); + output_width = WINDOW_WIDTH; + output_height = WINDOW_HEIGHT; in_blackout = player_is_in_blackout(&app->player); now_ticks = SDL_GetTicks64(); diff --git a/src/app.o b/src/app.o index 63e8672..db903c1 100644 Binary files a/src/app.o and b/src/app.o differ