summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorSoren Jorvang <soren.jorvang@gmail.com>2011-02-17 19:13:44 +0000
committerSoren Jorvang <soren.jorvang@gmail.com>2011-02-17 19:13:44 +0000
commit2ce4b29ae2b451d1edec2d21a976d800c47b3fcd (patch)
tree4d6ad4c3721f627e7dedb24a7ef15d4ff035dbd2 /Source
parentfa80f4074d507496e287216bb12196d8534c4b8c (diff)
Initialize video before HW as required by non-USE_WX platforms.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7189 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/Core/Src/Core.cpp14
-rw-r--r--Source/Core/DolphinWX/Src/Frame.cpp2
-rw-r--r--Source/Plugins/Plugin_VideoOGL/Src/Render.cpp2
3 files changed, 9 insertions, 9 deletions
diff --git a/Source/Core/Core/Src/Core.cpp b/Source/Core/Core/Src/Core.cpp
index 79d62f1717..d751024d85 100644
--- a/Source/Core/Core/Src/Core.cpp
+++ b/Source/Core/Core/Src/Core.cpp
@@ -213,6 +213,14 @@ bool Init()
GetData<u8>("IPL.AR"));
}
+ // _CoreParameter.hMainWindow is first the m_Panel handle,
+ // then it is updated to have the new window handle,
+ // within g_video_backend->Initialize()
+ // TODO: that's ugly, change Initialize() to take m_Panel
+ // and return the new window handle
+ g_video_backend->Initialize();
+ g_pWindowHandle = _CoreParameter.hMainWindow;
+
HW::Init();
DSP::GetDSPEmulator()->Initialize(g_pWindowHandle,
_CoreParameter.bWii, _CoreParameter.bDSPThread);
@@ -370,12 +378,6 @@ void EmuThread()
emuThreadGoing.Set();
- // _CoreParameter.hMainWindow is first the m_Panel handle, then it is updated to have the new window handle,
- // within g_video_backend->Initialize()
- // TODO: that's ugly, change Initialize() to take m_Panel and return the new window handle
- g_video_backend->Initialize();
- g_pWindowHandle = _CoreParameter.hMainWindow;
-
DisplayMessage("CPU: " + cpu_info.Summarize(), 8000);
DisplayMessage(_CoreParameter.m_strFilename, 3000);
diff --git a/Source/Core/DolphinWX/Src/Frame.cpp b/Source/Core/DolphinWX/Src/Frame.cpp
index cb16666ab8..b102be2415 100644
--- a/Source/Core/DolphinWX/Src/Frame.cpp
+++ b/Source/Core/DolphinWX/Src/Frame.cpp
@@ -686,10 +686,8 @@ void CFrame::OnHostMessage(wxCommandEvent& event)
void CFrame::GetRenderWindowSize(int& x, int& y, int& width, int& height)
{
- wxMutexGuiEnter();
m_RenderParent->GetClientSize(&width, &height);
m_RenderParent->GetPosition(&x, &y);
- wxMutexGuiLeave();
}
void CFrame::OnRenderWindowSizeRequest(int width, int height)
diff --git a/Source/Plugins/Plugin_VideoOGL/Src/Render.cpp b/Source/Plugins/Plugin_VideoOGL/Src/Render.cpp
index 75e950b0e1..0d3c353bb5 100644
--- a/Source/Plugins/Plugin_VideoOGL/Src/Render.cpp
+++ b/Source/Plugins/Plugin_VideoOGL/Src/Render.cpp
@@ -538,7 +538,7 @@ void Renderer::DrawDebugInfo()
p+=sprintf(p, "FPS: %d\n", s_fps);
if (g_ActiveConfig.bShowInputDisplay)
- p+=sprintf(p, Frame::GetInputDisplay().c_str());
+ p+=sprintf(p, "%s", Frame::GetInputDisplay().c_str());
if (g_ActiveConfig.bShowEFBCopyRegions)
{