From f2688e78663fceb7965d21bce2773b4b5423a49e Mon Sep 17 00:00:00 2001 From: Lance Date: Mon, 6 Apr 2009 14:19:29 +0000 Subject: [PATCH] My attempt to get SDL binaries under Linux to compile git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3159 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/sys_sdl.c | 2 +- engine/gl/gl_vidsdl.c | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/engine/client/sys_sdl.c b/engine/client/sys_sdl.c index 4ecf0c09c..dc3a7edc9 100644 --- a/engine/client/sys_sdl.c +++ b/engine/client/sys_sdl.c @@ -129,7 +129,7 @@ void Sys_Quit (void) //enumerate the files in a directory (of both gpath and match - match may not contain ..) //calls the callback for each one until the callback returns 0 //SDL provides no file enumeration facilities. -int Sys_EnumerateFiles (char *gpath, char *match, int (*func)(char *, int, void *), void *parm) +int Sys_EnumerateFiles (const char *gpath, const char *match, int (*func)(const char *, int, void *), void *parm) { return 1; } diff --git a/engine/gl/gl_vidsdl.c b/engine/gl/gl_vidsdl.c index 48d9351db..d26302d3e 100644 --- a/engine/gl/gl_vidsdl.c +++ b/engine/gl/gl_vidsdl.c @@ -250,5 +250,10 @@ void GLVID_ShiftPalette (unsigned char *palette) gammaworks = false; } +void GLVID_SetCaption(char *text) +{ + SDL_WM_SetCaption( text, NULL ); +} +