Fix wrong clang-tidy modification. This is an integer division. Thanks @meyraud705 (see PR #6725)

This commit is contained in:
Sylvain 2022-12-03 13:36:09 +01:00
parent 0a91a793cf
commit 3e9ae3ea64
No known key found for this signature in database
GPG key ID: 5F87E02E5BC0939E

View file

@ -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) {