diff --git a/common/cd_sdl.c b/common/cd_sdl.c index 14acfcf..3ba4868 100644 --- a/common/cd_sdl.c +++ b/common/cd_sdl.c @@ -31,6 +31,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include #include #include +#include #include diff --git a/common/gl_vidlinux_3dfx.c b/common/gl_vidlinux_3dfx.c index 1104547..46a367f 100644 --- a/common/gl_vidlinux_3dfx.c +++ b/common/gl_vidlinux_3dfx.c @@ -202,7 +202,7 @@ void VID_SetPalette (unsigned char *palette) Sys_mkdir (s); snprintf(s, sizeof(s), "%s/glquake/15to8.pal", com_gamedir); if ((f = gzopen(s, "wb")) != NULL) { - gzwrite(d_15to8table, 1<<15, 1); + gzwrite(f, d_15to8table, 1<<15); gzclose(f); } //#endif // QUAKEWORLD diff --git a/common/vid_sdl.c b/common/vid_sdl.c index 2d2deb4..ff9ab32 100644 --- a/common/vid_sdl.c +++ b/common/vid_sdl.c @@ -1,4 +1,5 @@ /* +vid_sdl.h - sdl video driver Copyright (C) 1996-1997 Id Software, Inc. Copyright (C) 1999,2000 contributors of the QuakeForge project Please see the file "AUTHORS" for a list of contributors @@ -19,15 +20,17 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -// vid_sdl.h -- sdl video driver #include -#include "keys.h" -#include "quakedef.h" -#include "d_local.h" -#include "sound.h" -#include "cvar.h" -#include "draw.h" +#include +#include +#include +#include +#include +#include +#include +#include +#include cvar_t _windowed_mouse = {"_windowed_mouse","0", true}; static float old_windowed_mouse = 0;