1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-23 23:04:36 +01:00

Use named casts on openrct2-ui root folder (#11137)

This commit is contained in:
Tulio Leao
2020-04-18 07:15:07 -03:00
committed by GitHub
parent 6f984a0a77
commit b948d65c33
5 changed files with 26 additions and 23 deletions

View File

@@ -92,7 +92,7 @@ SDL_Cursor* CursorRepository::Create(const CursorData* cursorInfo, uint8_t scale
{
SDL_Cursor* cursor;
auto integer_scale = (int)round(scale);
auto integer_scale = static_cast<int>(round(scale));
auto data = scaleDataArray(cursorInfo->Data, CURSOR_BIT_WIDTH, CURSOR_HEIGHT, static_cast<size_t>(integer_scale));
auto mask = scaleDataArray(cursorInfo->Mask, CURSOR_BIT_WIDTH, CURSOR_HEIGHT, static_cast<size_t>(integer_scale));