Skip to content

Commit

Permalink
Fix compilation C90 mixed declarations and code (Thanks Cameron Gutma…
Browse files Browse the repository at this point in the history
…n !)
  • Loading branch information
1bsyl committed Feb 25, 2020
1 parent e2b132c commit 21a2e0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/SDL_surface.c
Expand Up @@ -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;
Expand Down

0 comments on commit 21a2e0c

Please sign in to comment.