From 762f410fc36180db179f62dde18afc7ab9b3e97a Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Thu, 13 Jun 2024 06:10:10 +0300 Subject: [PATCH] fix build error due to -Wfloat-conversion --- examples/showimage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/showimage.c b/examples/showimage.c index 5719dd75..fcabca9c 100644 --- a/examples/showimage.c +++ b/examples/showimage.c @@ -240,7 +240,7 @@ int main(int argc, char *argv[]) } } /* Draw a background pattern in case the image has transparency */ - draw_background(renderer, w, h); + draw_background(renderer, (int)w, (int)h); /* Display the image */ SDL_RenderTexture(renderer, texture, NULL, NULL);