Skip to content
Permalink
Browse files

Fix compilation C90 mixed declarations and code (Thanks Cameron Gutma…

…n !)
  • Loading branch information
1bsyl committed Feb 25, 2020
1 parent e2b132c commit 21a2e0c787cb3bbbca5dcab9320bd3e3dedbe5ac
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/video/SDL_surface.c
@@ -1052,8 +1052,8 @@ SDL_ConvertSurface(SDL_Surface * surface, const SDL_PixelFormat * format,

/* Set opaque and backup palette alpha values */
if (set_opaque) {
palette_saved_alpha = SDL_stack_alloc(Uint8, surface->format->palette->ncolors);
int i;
palette_saved_alpha = SDL_stack_alloc(Uint8, surface->format->palette->ncolors);
for (i = 0; i < surface->format->palette->ncolors; i++) {
palette_saved_alpha[i] = surface->format->palette->colors[i].a;
surface->format->palette->colors[i].a = SDL_ALPHA_OPAQUE;

0 comments on commit 21a2e0c

Please sign in to comment.