mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-26 18:16:44 +08:00
Remove redundant casts
This commit is contained in:
committed by
Sam Lantinga
parent
2e346d7166
commit
c70f54e28b
+2
-2
@@ -167,8 +167,8 @@ static void DrawRects(SDL_Renderer *renderer)
|
||||
|
||||
rect.w = (float)SDL_rand(viewport.h / 2);
|
||||
rect.h = (float)SDL_rand(viewport.h / 2);
|
||||
rect.x = (float)((SDL_rand(viewport.w * 2) - viewport.w) - (rect.w / 2));
|
||||
rect.y = (float)((SDL_rand(viewport.h * 2) - viewport.h) - (rect.h / 2));
|
||||
rect.x = (SDL_rand(viewport.w * 2) - viewport.w) - (rect.w / 2);
|
||||
rect.y = (SDL_rand(viewport.h * 2) - viewport.h) - (rect.h / 2);
|
||||
SDL_RenderFillRect(renderer, &rect);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user