diff options
Diffstat (limited to 'textscreen')
-rw-r--r-- | textscreen/Makefile.am | 2 | ||||
-rw-r--r-- | textscreen/examples/Makefile.am | 2 | ||||
-rw-r--r-- | textscreen/txt_sdl.c | 6 |
3 files changed, 7 insertions, 3 deletions
diff --git a/textscreen/Makefile.am b/textscreen/Makefile.am index d6863ca9..c1c6f392 100644 --- a/textscreen/Makefile.am +++ b/textscreen/Makefile.am @@ -1,5 +1,5 @@ -AM_CFLAGS = -I../src +AM_CFLAGS = -I$(top_builddir)/src CTAGS_ARGS=-I TXT_UNCAST_ARG+ diff --git a/textscreen/examples/Makefile.am b/textscreen/examples/Makefile.am index e314e7e8..efd17072 100644 --- a/textscreen/examples/Makefile.am +++ b/textscreen/examples/Makefile.am @@ -1,5 +1,5 @@ -AM_CFLAGS = -I.. -I../../src +AM_CFLAGS = -I.. -I$(top_builddir)/src noinst_PROGRAMS=guitest calculator diff --git a/textscreen/txt_sdl.c b/textscreen/txt_sdl.c index 315d2762..33659fcc 100644 --- a/textscreen/txt_sdl.c +++ b/textscreen/txt_sdl.c @@ -200,15 +200,19 @@ static void ChooseFont(void) int TXT_Init(void) { + int flags; + if (SDL_InitSubSystem(SDL_INIT_VIDEO) < 0) { return 0; } + 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; |