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:
parent
7d63331cab
commit
ba70042981
1 changed files with 2 additions and 2 deletions
|
@ -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]);
|
||||
|
|
Loading…
Reference in a new issue