summaryrefslogtreecommitdiff
path: root/textscreen
diff options
context:
space:
mode:
authorSimon Howard2008-12-02 19:19:48 +0000
committerSimon Howard2008-12-02 19:19:48 +0000
commita2afcffe4c65a16f1ad20f87e9a8867dc0deaf1b (patch)
tree0659d437f78b1f990321cb2c29343448ad02680d /textscreen
parent2c2e0d5ac8e9629f5abb66cf90efe4e2e7c0ad02 (diff)
downloadchocolate-doom-a2afcffe4c65a16f1ad20f87e9a8867dc0deaf1b.tar.gz
chocolate-doom-a2afcffe4c65a16f1ad20f87e9a8867dc0deaf1b.tar.bz2
chocolate-doom-a2afcffe4c65a16f1ad20f87e9a8867dc0deaf1b.zip
Use the hardware palette for textscreen and Hexen graphical startup.
Subversion-branch: /branches/raven-branch Subversion-revision: 1403
Diffstat (limited to 'textscreen')
-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;