]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - palette.h
trying to fix many forward references in input code
[xonotic/darkplaces.git] / palette.h
index 7e3ef152f9c46723102c32a07e81b588a458ccbd..8013e9892f8026fff4ee4a29db39dcbfdf2f0454 100644 (file)
--- a/palette.h
+++ b/palette.h
@@ -1,4 +1,7 @@
 
+#ifndef PALLETE_H
+#define PALLETE_H
+
 extern cvar_t v_gamma;
 extern cvar_t v_contrast;
 extern cvar_t v_brightness;
@@ -6,15 +9,18 @@ extern cvar_t v_overbrightbits;
 extern cvar_t v_hwgamma;
 
 extern unsigned int d_8to24table[256];
-//extern byte d_15to8table[32768];
+//extern qbyte d_15to8table[32768];
 
 extern qboolean hardwaregammasupported;
 
 void VID_UpdateGamma(qboolean force);
 
 // used by hardware gamma functions in vid_* files
-void BuildGammaTable8(float prescale, float gamma, float scale, float base, byte *out);
+void BuildGammaTable8(float prescale, float gamma, float scale, float base, qbyte *out);
 void BuildGammaTable16(float prescale, float gamma, float scale, float base, unsigned short *out);
 
 void Gamma_Init(void);
 void Palette_Init(void);
+
+#endif
+