git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3690
d7cf8633-e32d-0410-b094-
e92efae38249
case MapNotify:
// window restored
vid_hidden = false;
case MapNotify:
// window restored
vid_hidden = false;
- vid_allowhwgamma = true;
+ vid_activewindow = false;
+ vid_allowhwgamma = false;
+ VID_RestoreSystemGamma();
break;
case UnmapNotify:
// window iconified/rolledup/whatever
vid_hidden = true;
break;
case UnmapNotify:
// window iconified/rolledup/whatever
vid_hidden = true;
+ vid_activewindow = false;
vid_allowhwgamma = false;
VID_RestoreSystemGamma();
break;
case FocusIn:
// window is now the input focus
vid_allowhwgamma = true;
vid_allowhwgamma = false;
VID_RestoreSystemGamma();
break;
case FocusIn:
// window is now the input focus
vid_allowhwgamma = true;
+ vid_activewindow = true;
break;
case FocusOut:
// window is no longer the input focus
vid_allowhwgamma = false;
break;
case FocusOut:
// window is no longer the input focus
vid_allowhwgamma = false;
+ vid_activewindow = false;
VID_RestoreSystemGamma();
break;
case EnterNotify:
// mouse entered window
VID_RestoreSystemGamma();
break;
case EnterNotify:
// mouse entered window
- vid_allowhwgamma = true;
break;
case LeaveNotify:
// mouse left window
break;
case LeaveNotify:
// mouse left window
- vid_allowhwgamma = false;
- VID_RestoreSystemGamma();