diff options
author | Andrey Nazarov <skuller@skuller.net> | 2012-12-04 00:51:04 +0400 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2012-12-04 02:40:22 +0400 |
commit | 76e92fe503ec47d6dcafc96fb3fdd6ca10c05753 (patch) | |
tree | 0bdd838d87d14eb3a26d1294826339022b979920 | |
parent | bc50c1678ae11b676cec0be6d5e63fe2aa1ca858 (diff) |
Setup 32-bit SDL surface.
-rw-r--r-- | src/unix/sdl/swimp.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/src/unix/sdl/swimp.c b/src/unix/sdl/swimp.c index bac9143..d192342 100644 --- a/src/unix/sdl/swimp.c +++ b/src/unix/sdl/swimp.c @@ -28,7 +28,7 @@ qboolean VID_Init(void) return qfalse; } - if (!VID_SDL_SetMode(SDL_SWSURFACE | SDL_HWPALETTE | SDL_RESIZABLE, 8)) { + if (!VID_SDL_SetMode(SDL_HWSURFACE | SDL_RESIZABLE, 32)) { Com_EPrintf("Couldn't set video mode: %s\n", SDL_GetError()); VID_SDL_Shutdown(); return qfalse; @@ -42,21 +42,6 @@ void VID_Shutdown(void) VID_SDL_Shutdown(); } -void VID_UpdatePalette(const byte *palette) -{ - SDL_Color colors[256]; - SDL_Color *c; - - for (c = colors; c < colors + 256; c++) { - c->r = palette[0]; - c->g = palette[1]; - c->b = palette[2]; - palette += 4; - } - - SDL_SetPalette(sdl.surface, SDL_LOGPAL, colors, 0, 256); -} - void VID_VideoWait(void) { } |