mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-23 01:15:35 +00:00
Fix wrong clang-tidy modification. This is an integer division. Thanks @meyraud705 (see PR #6725)
This commit is contained in:
parent
0a91a793cf
commit
3e9ae3ea64
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue