Skip to content

Commit

Permalink
Merge pull request #1032 from Yankes/patch-1
Browse files Browse the repository at this point in the history
Bug in palette copy
  • Loading branch information
SupSuper committed Jul 4, 2015
2 parents 2f1e196 + 3de13c3 commit 5a972b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Engine/Surface.cpp
Expand Up @@ -893,7 +893,7 @@ void Surface::resize(int width, int height)

// Copy old contents
SDL_SetColorKey(surface, SDL_SRCCOLORKEY, 0);
SDL_SetColors(surface, getPalette(), 0, 255);
SDL_SetColors(surface, getPalette(), 0, 256);
SDL_BlitSurface(_surface, 0, surface, 0);

// Delete old surface
Expand Down

0 comments on commit 5a972b0

Please sign in to comment.