diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/area.c | 3 | ||||
-rw-r--r-- | src/viewport.c | 2 |
2 files changed, 3 insertions, 2 deletions
@@ -51,7 +51,8 @@ blit_map_layers(struct area *area) SDL_FillRect(area->map_layers[l], &dstrect, SDL_MapRGB(area->map_layers[l]->format, 0xFC, 0x00, 0xFF)); - SDL_SetColorKey(area->map_layers[l], SDL_SRCCOLORKEY, + SDL_SetColorKey(area->map_layers[l], SDL_SRCCOLORKEY | + SDL_RLEACCEL, SDL_MapRGB(area->map_layers[l]->format, 0xFC, 0x00, 0xFF)); SDL_SetColors(area->map_layers[l], colors, 0, 256); diff --git a/src/viewport.c b/src/viewport.c index 078d37c..05b30a6 100644 --- a/src/viewport.c +++ b/src/viewport.c @@ -19,7 +19,7 @@ init_viewport(int width, int height, int bpp) debug("Setting video mode..."); vp->screen = SDL_SetVideoMode(width, height, bpp, - SDL_HWSURFACE | SDL_HWPALETTE); + SDL_HWSURFACE | SDL_DOUBLEBUF | SDL_HWPALETTE); if (vp->screen == NULL) { err(1, "Failed to set video mode (%s)", SDL_GetError()); } |