Use the hardware palette for textscreen and Hexen graphical startup.

Subversion-branch: /branches/raven-branch
Subversion-revision: 1403
This commit is contained in:
Simon Howard 2008-12-02 19:19:48 +00:00
parent 2c2e0d5ac8
commit a2afcffe4c
2 changed files with 9 additions and 3 deletions

View file

@ -48,7 +48,7 @@ boolean I_SetVideoModeHR(void)
return false;
}
flags = SDL_SWSURFACE;
flags = SDL_SWSURFACE | SDL_HWPALETTE | SDL_DOUBLEBUF;
hr_surface = SDL_SetVideoMode(HR_SCREENWIDTH, HR_SCREENHEIGHT, 8, flags);

View file

@ -115,9 +115,15 @@ static SDL_Color ega_colors[] =
int TXT_Init(void)
{
int flags;
SDL_InitSubSystem(SDL_INIT_VIDEO);
screen = SDL_SetVideoMode(TXT_SCREEN_W * CHAR_W, TXT_SCREEN_H * CHAR_H, 8, 0);
flags = SDL_SWSURFACE | SDL_HWPALETTE | SDL_DOUBLEBUF;
screen = SDL_SetVideoMode(TXT_SCREEN_W * CHAR_W,
TXT_SCREEN_H * CHAR_H,
8, flags);
if (screen == NULL)
return 0;