From 41c98f982eb44e89416fcb9c0139b6a922e14b0f Mon Sep 17 00:00:00 2001 From: Jordan Woyak Date: Tue, 15 Mar 2011 23:09:12 +0000 Subject: A bit of cleanup to Core Init/Stop, Frame, and Main. Cleanup XAudio2 to attempt to fix the crash on stop(didn't help :p). For some reason CFrame::DoStop is called twice.(might be the issue) git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7353 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/VideoCommon/Src/RenderBase.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'Source/Core/VideoCommon/Src/RenderBase.cpp') diff --git a/Source/Core/VideoCommon/Src/RenderBase.cpp b/Source/Core/VideoCommon/Src/RenderBase.cpp index 82a4ec8a72..c7b18e509c 100644 --- a/Source/Core/VideoCommon/Src/RenderBase.cpp +++ b/Source/Core/VideoCommon/Src/RenderBase.cpp @@ -35,6 +35,7 @@ #include "Fifo.h" #include "Timer.h" #include "StringUtil.h" +#include "Host.h" #include #include @@ -318,6 +319,19 @@ void Renderer::CalculateXYScale(const TargetRectangle& dst_rect) } } +void Renderer::SetWindowSize(int width, int height) +{ + if (width < 1) + width = 1; + if (height < 1) + height = 1; + + // Scale the window size by the EFB scale. + CalculateTargetScale(width, height, width, height); + + Host_RequestRenderWindowSize(width, height); +} + void UpdateViewport() { g_renderer->UpdateViewport(); -- cgit v1.2.3