Eliminate -Wmissing-field-initializers warnings.

This commit is contained in:
Arthur O'Dwyer
2020-03-23 14:38:57 -04:00
parent a0da10b408
commit 41669ab720
6 changed files with 40 additions and 40 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ extern "C"
SDL_Surface *SDL_PNGFormatAlpha(SDL_Surface *src)
{
SDL_Surface *surf;
SDL_Rect rect = { 0 };
SDL_Rect rect = { 0, 0, 0, 0 };
/* NO-OP for images < 32bpp and 32bpp images that already have Alpha channel */
if (src->format->BitsPerPixel <= 24 || src->format->Amask) {