diff options
Diffstat (limited to 'textscreen/txt_sdl.c')
-rw-r--r-- | textscreen/txt_sdl.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/textscreen/txt_sdl.c b/textscreen/txt_sdl.c index 1bc42d7c..ea2280d0 100644 --- a/textscreen/txt_sdl.c +++ b/textscreen/txt_sdl.c @@ -166,12 +166,16 @@ static void ChooseFont(void) int TXT_Init(void) { + int flags; + SDL_InitSubSystem(SDL_INIT_VIDEO); + flags = SDL_SWSURFACE | SDL_HWPALETTE | SDL_DOUBLEBUF; + ChooseFont(); screen = SDL_SetVideoMode(TXT_SCREEN_W * font->w, - TXT_SCREEN_H * font->h, 8, 0); + TXT_SCREEN_H * font->h, 8, flags); if (screen == NULL) return 0; |