Fixed video crash on older XFree86 servers
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40446
This commit is contained in:
parent
fe1b097b38
commit
4fe2e406a5
1 changed files with 1 additions and 1 deletions
|
@ -98,7 +98,7 @@ int X11_SetVidModeGamma(_THIS, float red, float green, float blue)
|
|||
static int X11_GetGammaNoLock(_THIS, float *red, float *green, float *blue)
|
||||
{
|
||||
#ifdef XFREE86_VMGAMMA
|
||||
if (use_vidmode >= 2) {
|
||||
if (use_vidmode >= 200) {
|
||||
SDL_NAME(XF86VidModeGamma) gamma;
|
||||
if (SDL_NAME(XF86VidModeGetGamma)(SDL_Display, SDL_Screen, &gamma)) {
|
||||
*red = gamma.red;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue