forked from fte/fteqw
1
0
Fork 0

Trying to fix some gamma ramp sizes. :/

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@965 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2005-04-18 17:31:53 +00:00
parent 7d63331cab
commit ba70042981
1 changed files with 2 additions and 2 deletions

View File

@ -564,7 +564,7 @@ void GLVID_ShiftPalette (unsigned char *palette)
// VID_SetPalette (palette);
if (ActiveApp && vid_hardwaregamma.value) //this is needed because ATI drivers don't work properly (or when task-switched out).
if (origionalapplied && ActiveApp && vid_hardwaregamma.value) //this is needed because ATI drivers don't work properly (or when task-switched out).
{
if (gammaworks)
{ //we have hardware gamma applied - if we're doing a BF, we don't want to reset to the default gamma (yuck)
@ -826,7 +826,7 @@ qboolean GLVID_Init (rendererstate_t *info, unsigned char *palette)
if (rampsize != 256)
{
origionalapplied = false;
Con_Printf("Gamma ramps are not of 256 componants.\n");
Con_Printf("Gamma ramps are not of 256 componants (but %i).\n", rampsize);
}
else
origionalapplied = XF86VidModeGetGammaRamp(vid_dpy, scrnum, 256, origionalramps[0], origionalramps[1], origionalramps[2]);