Uncommented SleepUntilInput (PAUSE_SLEEP);

This commit is contained in:
Anton E. Gavrilov 2000-03-27 15:15:46 +00:00
parent 7062960a7c
commit a19108fc80

View file

@ -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);
}