mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
Require vid_gamma_avail for gamma switching, not vidmode_avail
This commit is contained in:
parent
79bee4f773
commit
62f57f5f2a
1 changed files with 1 additions and 1 deletions
|
@ -509,7 +509,7 @@ X11_SetGamma (double gamma)
|
|||
# ifdef X_XF86VidModeSetGamma
|
||||
XF86VidModeGamma xgamma;
|
||||
|
||||
if (vidmode_avail && vid_system_gamma->int_val) {
|
||||
if (vid_gamma_avail && vid_system_gamma->int_val) {
|
||||
xgamma.red = xgamma.green = xgamma.blue = (float) gamma;
|
||||
if (XF86VidModeSetGamma (x_disp, x_screen, &xgamma))
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue