summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Src/Fifo.cpp
diff options
context:
space:
mode:
authornakeee <nakeee@gmail.com>2008-10-02 17:12:47 +0000
committernakeee <nakeee@gmail.com>2008-10-02 17:12:47 +0000
commit29fdb6837af87416880851a52b80ca94756fdc2d (patch)
tree3a9c9366cb40022624c12110e656804ff2c5be6e /Source/Core/VideoCommon/Src/Fifo.cpp
parent4923da76d7e61c5f0ed5f5bc17d1a53fec40885d (diff)
Making sure nothing broke on windows
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@745 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/VideoCommon/Src/Fifo.cpp')
-rw-r--r--Source/Core/VideoCommon/Src/Fifo.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/Src/Fifo.cpp b/Source/Core/VideoCommon/Src/Fifo.cpp
index ae7efe3c26..2768bed065 100644
--- a/Source/Core/VideoCommon/Src/Fifo.cpp
+++ b/Source/Core/VideoCommon/Src/Fifo.cpp
@@ -168,8 +168,12 @@ void Fifo_EnterLoop(const SVideoInitialize &video_initialize)
if (hEventOnIdle==NULL) PanicAlert("Fifo_EnterLoop() -> EventOnIdle NULL");
#endif
+#ifdef _WIN32
// TODO(ector): Don't peek so often!
- while (fifoStateRun || video_initialize.pPeekMessages())
+ while (video_initialize.pPeekMessages())
+#else
+ while (fifoStateRun)
+#endif
{
#if defined(THREAD_VIDEO_WAKEUP_ONIDLE) && defined(_WIN32)
if (MsgWaitForMultipleObjects(1, &hEventOnIdle, FALSE, 1L, QS_ALLEVENTS) == WAIT_ABANDONED)