From 5cecd78234c0200bf653f7ee1cf169c8fc8d330b Mon Sep 17 00:00:00 2001 From: Sebastian Krzyszkowiak Date: Fri, 29 Jul 2022 17:07:22 +0200 Subject: [PATCH] utils: DrawFullscreen: Initialize variables Not strictly necessary as they're set by al_get_clipping_rectangle, but makes clang-tidy happy. --- src/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.c b/src/utils.c index 855a6fc..469584e 100644 --- a/src/utils.c +++ b/src/utils.c @@ -132,7 +132,7 @@ SYMBOL_EXPORT void DrawCenteredTintedScaled(ALLEGRO_BITMAP* bitmap, ALLEGRO_COLO } 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(); al_identity_transform(&transform); al_get_clipping_rectangle(&x, &y, &w, &h);