summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon
diff options
context:
space:
mode:
authorsl1nk3.s <sl1nk3.s@gmail.com>2009-07-15 15:09:20 +0000
committersl1nk3.s <sl1nk3.s@gmail.com>2009-07-15 15:09:20 +0000
commit3bc8eb7eaf83445e04c318fcd4f53fd6da73bf66 (patch)
tree57f6574768e68773875a42d8f3fba8a33e4105d5 /Source/Core/VideoCommon
parent15de161f954cb70c733191c968bca0f29dd4ba61 (diff)
Fixed one of the two remaining crash on Stop (issue 600), and removed some setup defines which are now useless anyway.
There's an attempt to implement Peek_Color too, probably done wrong :P git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3799 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/VideoCommon')
-rw-r--r--Source/Core/VideoCommon/Src/Fifo.cpp24
1 files changed, 4 insertions, 20 deletions
diff --git a/Source/Core/VideoCommon/Src/Fifo.cpp b/Source/Core/VideoCommon/Src/Fifo.cpp
index dcd593550a..84cb52dc9b 100644
--- a/Source/Core/VideoCommon/Src/Fifo.cpp
+++ b/Source/Core/VideoCommon/Src/Fifo.cpp
@@ -16,11 +16,7 @@
// http://code.google.com/p/dolphin-emu/
#include <string.h>
-
#include "Setup.h"
-#ifdef SETUP_TIMER_WAITING
- #include "../../../Plugins/Plugin_VideoOGL/Src/OS/Win32.h"
-#endif
#include "MemoryUtil.h"
#include "Thread.h"
#include "Atomic.h"
@@ -89,18 +85,9 @@ u8* FAKE_GetFifoEndPtr()
void Fifo_ExitLoop()
{
fifoStateRun = false;
- #ifndef SETUP_TIMER_WAITING
- fifo_exit_event.MsgWait();
- fifo_exit_event.Shutdown();
- #else
- //Console::Print("Video: Fifo_ExitLoop: Done:%i\n", fifo_exit_event.DoneWait());
- if (fifo_exit_event.TimerWait(Fifo_ExitLoop))
- {
- //Console::Print("Video: Fifo_Shutdown: Done:%i\n\n", fifo_exit_event.DoneWait());
- fifo_exit_event.Shutdown();
- PostMessage(EmuWindow::GetParentWnd(), WM_USER, OPENGL_VIDEO_STOP, 0);
- }
- #endif
+
+ fifo_exit_event.MsgWait();
+ fifo_exit_event.Shutdown();
}
// May be executed from any thread, even the graphics thread.
@@ -140,7 +127,7 @@ void Fifo_EnterLoop(const SVideoInitialize &video_initialize)
while (fifoStateRun)
{
-#if defined(_WIN32) && !defined(SETUP_AVOID_OPENGL_SCREEN_MESSAGE_HANG)
+#if defined(_WIN32)
video_initialize.pPeekMessages();
#endif
@@ -220,8 +207,5 @@ void Fifo_EnterLoop(const SVideoInitialize &video_initialize)
s_criticalFifo.Leave();
}
fifo_exit_event.Set();
- #ifdef SETUP_TIMER_WAITING
- fifo_exit_event.SetTimer();
- #endif
}