1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-01 02:07:57 +00:00

Eliminate -Wmissing-field-initializers warnings.

This commit is contained in:
Arthur O'Dwyer
2020-02-21 23:26:57 -05:00
parent a0da10b408
commit 41669ab720
6 changed files with 40 additions and 40 deletions

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) {