From 8935a3d7639615d142510cde24b3ef7f1e71eab5 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Tue, 19 Feb 2013 22:02:34 -0500 Subject: Try to get some small performance improvements. --- (limited to 'src') diff --git a/src/area.c b/src/area.c index b660cae..b72faf0 100644 --- a/src/area.c +++ b/src/area.c @@ -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()); } -- cgit v0.9.1