#define NOT_FOCUS_SLEEP 20
int starttime;
-qboolean ActiveApp, Minimized;
static qboolean sc_return_on_enter = false;
HANDLE hinput, houtput;
if (cls.state != ca_dedicated)
{
// yield the CPU for a little while when paused, minimized, or not the focus
- if ((cl.paused && !ActiveApp) || Minimized)
+ if ((cl.paused && !vid_activewindow) || vid_hidden)
{
SleepUntilInput (PAUSE_SLEEP);
scr_skipupdate = 1; // no point in bothering to draw
}
- else if (!ActiveApp)
+ else if (!vid_activewindow)
SleepUntilInput (NOT_FOCUS_SLEEP);
}