From afe3589124040f13fe04f9972f1cb175748205a1 Mon Sep 17 00:00:00 2001 From: Joseph Carter Date: Thu, 3 Feb 2000 09:55:11 +0000 Subject: [PATCH] Fix for 3dfx target using lsh's macros --- common/gl_vidlinux_3dfx.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/common/gl_vidlinux_3dfx.c b/common/gl_vidlinux_3dfx.c index b0ec85a..1104547 100644 --- a/common/gl_vidlinux_3dfx.c +++ b/common/gl_vidlinux_3dfx.c @@ -22,13 +22,13 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "qtypes.h" -#include "quakedef.h" -#include "glquake.h" -#include "sys.h" -#include "console.h" -#include "cvar.h" -#include "sound.h" +#include +#include +#include +#include +#include +#include +#include #include #include @@ -201,9 +201,9 @@ void VID_SetPalette (unsigned char *palette) snprintf(s, sizeof(s), "%s/glquake", com_gamedir); Sys_mkdir (s); snprintf(s, sizeof(s), "%s/glquake/15to8.pal", com_gamedir); - if ((f = fopen(s, "wb")) != NULL) { - fwrite(d_15to8table, 1<<15, 1, f); - fclose(f); + if ((f = gzopen(s, "wb")) != NULL) { + gzwrite(d_15to8table, 1<<15, 1); + gzclose(f); } //#endif // QUAKEWORLD }