clang-tidy: run bugprone-incorrect-roundings

This commit is contained in:
scribam 2021-03-14 21:11:04 +01:00
parent 67435c71e8
commit 8542675488
1 changed files with 2 additions and 2 deletions

View File

@ -639,8 +639,8 @@ static bool RenderFrame()
} }
else else
{ {
rendering_width = screen_width * screen_scaling + 0.5f; rendering_width = std::lround(screen_width * screen_scaling);
rendering_height = screen_height * screen_scaling + 0.5f; rendering_height = std::lround(screen_height * screen_scaling);
} }
resize(rendering_width, rendering_height); resize(rendering_width, rendering_height);