mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-30 20:50:42 +00:00
Don't restore gamma if it's never been initialized. :)
This commit is contained in:
parent
ff901a312f
commit
2711cbbe7c
1 changed files with 1 additions and 1 deletions
|
@ -787,7 +787,7 @@ X11_RestoreGamma (void)
|
||||||
# ifdef X_XF86VidModeSetGamma
|
# ifdef X_XF86VidModeSetGamma
|
||||||
XF86VidModeGamma xgamma;
|
XF86VidModeGamma xgamma;
|
||||||
|
|
||||||
if (vid_gamma_avail) {
|
if (vid_gamma_avail && x_gamma[0] > 0) {
|
||||||
xgamma.red = x_gamma[0];
|
xgamma.red = x_gamma[0];
|
||||||
xgamma.green = x_gamma[1];
|
xgamma.green = x_gamma[1];
|
||||||
xgamma.blue = x_gamma[2];
|
xgamma.blue = x_gamma[2];
|
||||||
|
|
Loading…
Reference in a new issue