diff options
Diffstat (limited to 'textscreen')
-rw-r--r-- | textscreen/Makefile.am | 2 | ||||
-rw-r--r-- | textscreen/txt_sdl.c | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/textscreen/Makefile.am b/textscreen/Makefile.am index 5d177111..b8904520 100644 --- a/textscreen/Makefile.am +++ b/textscreen/Makefile.am @@ -1,6 +1,8 @@ AM_CFLAGS = -I../src +CTAGS_ARGS=-I TXT_UNCAST_ARG+ + # build this directory before the examples directory. SUBDIRS= . examples diff --git a/textscreen/txt_sdl.c b/textscreen/txt_sdl.c index ea2280d0..ef00cfb4 100644 --- a/textscreen/txt_sdl.c +++ b/textscreen/txt_sdl.c @@ -142,6 +142,9 @@ static void ChooseFont(void) if (modes == NULL || modes == (SDL_Rect **) -1 || *modes == NULL) { +#ifdef _WIN32_WCE + font = &small_font; +#endif return; } @@ -168,7 +171,10 @@ int TXT_Init(void) { int flags; - SDL_InitSubSystem(SDL_INIT_VIDEO); + if (SDL_InitSubSystem(SDL_INIT_VIDEO) < 0) + { + return 0; + } flags = SDL_SWSURFACE | SDL_HWPALETTE | SDL_DOUBLEBUF; |