X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=vid.h;h=9d5ca1372176a729e937ae049c7f4f692f8e5781;hb=7977ef74dc79b00067952417dd4252ed3ebcbadb;hp=5aae1b4d5220406ebf0f9d3e6d4ab004c2e14ef2;hpb=cb872df2ca589d4b30c733dc239986dfd64f0c12;p=xonotic%2Fdarkplaces.git diff --git a/vid.h b/vid.h index 5aae1b4d..9d5ca137 100644 --- a/vid.h +++ b/vid.h @@ -123,12 +123,17 @@ int VID_InitMode(int fullscreen, int width, int height, int bpp, int refreshrate // sets hardware gamma correction, returns false if the device does not // support gamma control -int VID_SetGamma (unsigned short *ramps); +// (ONLY called by VID_UpdateGamma and VID_RestoreSystemGamma) +int VID_SetGamma(unsigned short *ramps, int rampsize); // gets hardware gamma correction, returns false if the device does not // support gamma control -int VID_GetGamma (unsigned short *ramps); - -void VID_UpdateGamma(qboolean force); +// (ONLY called by VID_UpdateGamma and VID_RestoreSystemGamma) +int VID_GetGamma(unsigned short *ramps, int rampsize); +// makes sure ramp arrays are big enough and calls VID_GetGamma/VID_SetGamma +// (ONLY to be called from VID_Finish!) +void VID_UpdateGamma(qboolean force, int rampsize); +// turns off hardware gamma ramps immediately +// (called from various shutdown/deactivation functions) void VID_RestoreSystemGamma(void); void VID_Finish (qboolean allowmousegrab);