Skip to content

Commit

Permalink
Use GetWindowSizeInPixels as recommended.
Browse files Browse the repository at this point in the history
  • Loading branch information
Themaister committed Nov 20, 2023
1 parent a7ebfc6 commit 5d631ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/platforms/application_sdl3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ struct WSIPlatformSDL : GraniteWSIPlatform
return VK_NULL_HANDLE;

int actual_width, actual_height;
SDL_GetWindowSize(window, &actual_width, &actual_height);
SDL_GetWindowSizeInPixels(window, &actual_width, &actual_height);
width = unsigned(actual_width);
height = unsigned(actual_height);
return surface;
Expand Down

0 comments on commit 5d631ca

Please sign in to comment.