From 43021a8a1e4ac6453f1fb3a3d1c44b766266e647 Mon Sep 17 00:00:00 2001 From: LPFaint99 Date: Thu, 17 Sep 2009 05:07:16 +0000 Subject: [PATCH] D3D: actually use the resolution setting for fullscreen mode (really dumb mistake of mine, due to lack of sleep :p) fixes issue 1426. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4289 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Plugins/Plugin_VideoDX9/Src/Render.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Plugins/Plugin_VideoDX9/Src/Render.cpp b/Source/Plugins/Plugin_VideoDX9/Src/Render.cpp index c744d7990d..148391c5fd 100644 --- a/Source/Plugins/Plugin_VideoDX9/Src/Render.cpp +++ b/Source/Plugins/Plugin_VideoDX9/Src/Render.cpp @@ -105,10 +105,10 @@ bool Renderer::Init() sscanf(g_Config.cFSResolution, "%dx%d", &w_temp, &h_temp); - for (fullScreenRes = 0; fullScreenRes < D3D::GetNumAdapters(); fullScreenRes++) + for (fullScreenRes = 0; fullScreenRes < D3D::GetAdapter(g_ActiveConfig.iAdapter).resolutions.size(); fullScreenRes++) { - if ((D3D::GetAdapter(fullScreenRes).resolutions[fullScreenRes].xres == w_temp) && - (D3D::GetAdapter(fullScreenRes).resolutions[fullScreenRes].yres == h_temp)) + if ((D3D::GetAdapter(g_ActiveConfig.iAdapter).resolutions[fullScreenRes].xres == w_temp) && + (D3D::GetAdapter(g_ActiveConfig.iAdapter).resolutions[fullScreenRes].yres == h_temp)) break; } D3D::Create(g_ActiveConfig.iAdapter, EmuWindow::GetWnd(), g_ActiveConfig.bFullscreen,