Skip to content

Commit

Permalink
Fix wrong clang-tidy modification. This is an integer division. Thanks
Browse files Browse the repository at this point in the history
  • Loading branch information
1bsyl committed Dec 3, 2022
1 parent 0a91a79 commit 3e9ae3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/render/SDL_render.c
Expand Up @@ -2313,9 +2313,9 @@ static int UpdateLogicalSize(SDL_Renderer *renderer, SDL_bool flush_viewport_cmd

if (renderer->integer_scale) {
if (want_aspect > real_aspect) {
scale = (float)(w) / renderer->logical_w;
scale = (float)(w / renderer->logical_w); /* This an integer division! */
} else {
scale = (float)(h) / renderer->logical_h;
scale = (float)(h / renderer->logical_h); /* This an integer division! */
}

if (scale < 1.0f) {
Expand Down

0 comments on commit 3e9ae3e

Please sign in to comment.