utils: DrawFullscreen: Initialize variables

Not strictly necessary as they're set by al_get_clipping_rectangle,
but makes clang-tidy happy.
This commit is contained in:
Sebastian Krzyszkowiak 2022-07-29 17:07:22 +02:00
parent a0d497b5b8
commit 5cecd78234
No known key found for this signature in database
GPG key ID: E8F235CF3BDBC3FF

View file

@ -132,7 +132,7 @@ SYMBOL_EXPORT void DrawCenteredTintedScaled(ALLEGRO_BITMAP* bitmap, ALLEGRO_COLO
} }
SYMBOL_EXPORT void DrawFullscreen(ALLEGRO_BITMAP* bitmap, int flags) { SYMBOL_EXPORT void DrawFullscreen(ALLEGRO_BITMAP* bitmap, int flags) {
int x, y, w, h; int x = 0, y = 0, w = 0, h = 0;
ALLEGRO_TRANSFORM transform, orig = *al_get_current_transform(); ALLEGRO_TRANSFORM transform, orig = *al_get_current_transform();
al_identity_transform(&transform); al_identity_transform(&transform);
al_get_clipping_rectangle(&x, &y, &w, &h); al_get_clipping_rectangle(&x, &y, &w, &h);