mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2024-11-25 05:11:23 +00:00
Uncommented SleepUntilInput (PAUSE_SLEEP);
This commit is contained in:
parent
7062960a7c
commit
a19108fc80
1 changed files with 3 additions and 2 deletions
|
@ -26,6 +26,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
#include <resource.h>
|
||||
#include <sys.h>
|
||||
#include <screen.h>
|
||||
#include <client.h>
|
||||
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
|
@ -761,12 +762,12 @@ WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine,
|
|||
while (1)
|
||||
{
|
||||
// yield the CPU for a little while when paused, minimized, or not the focus
|
||||
/* if ((cl.paused && (!ActiveApp && !DDActive)) || Minimized || block_drawing)
|
||||
if ((cl.paused && (!ActiveApp && !DDActive)) || Minimized || block_drawing)
|
||||
{
|
||||
SleepUntilInput (PAUSE_SLEEP);
|
||||
scr_skipupdate = 1; // no point in bothering to draw
|
||||
}
|
||||
else*/ if (!ActiveApp && !DDActive)
|
||||
else if (!ActiveApp && !DDActive)
|
||||
{
|
||||
SleepUntilInput (NOT_FOCUS_SLEEP);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue