summaryrefslogtreecommitdiff
path: root/textscreen/txt_sdl.c
diff options
context:
space:
mode:
Diffstat (limited to 'textscreen/txt_sdl.c')
-rw-r--r--textscreen/txt_sdl.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/textscreen/txt_sdl.c b/textscreen/txt_sdl.c
index 823685a1..d695c898 100644
--- a/textscreen/txt_sdl.c
+++ b/textscreen/txt_sdl.c
@@ -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;