Skip to content

Commit

Permalink
fix build error due to -Wfloat-conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
sezero committed Jun 13, 2024
1 parent c05d049 commit 762f410
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/showimage.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 762f410

Please sign in to comment.