Emulator Issues #5646
closedSupport MultiMon && Show Current Screen Resolution in DX9
0%
Description
diff --git a/Source/Core/DolphinWX/Src/FrameTools.cpp b/Source/Core/DolphinWX/Src/FrameTools.cpp
index d24bd2f..039ec66 100644
--- a/Source/Core/DolphinWX/Src/FrameTools.cpp
+++ b/Source/Core/DolphinWX/Src/FrameTools.cpp
@@ -932,6 +932,17 @@ void CFrame::StartGame(const std::string& filename)
if (position == wxPoint(0, 0))
position = wxDefaultPosition;
#endif
-
//Add here: If use FullScreen mode, show Window at current CursorPos to support MultiMon
-
if(SConfig::GetInstance().m_LocalCoreStartupParameter.bFullscreen)
-
{
-
POINT pt;
-
GetCursorPos(&pt);
-
position.x=pt.x;
-
position.y=pt.y;
-
}
-
else
-
position = wxDefaultPosition;
-
//End m_RenderFrame = new CRenderFrame((wxFrame*)this, wxID_ANY, _("Dolphin"), position); if (SConfig::GetInstance().m_LocalCoreStartupParameter.bKeepWindowOnTop)
diff --git a/Source/Plugins/Plugin_VideoDX9/Src/D3DBase.cpp b/Source/Plugins/Plugin_VideoDX9/Src/D3DBase.cpp
index ff3f68a..7b9fa56 100644
--- a/Source/Plugins/Plugin_VideoDX9/Src/D3DBase.cpp
+++ b/Source/Plugins/Plugin_VideoDX9/Src/D3DBase.cpp
@@ -21,6 +21,7 @@
#include "XFStructs.h"
#include "StringUtil.h"
#include "VideoCommon.h"
+#include "OnScreenDisplay.h"
D3DXSAVESURFACETOFILEATYPE PD3DXSaveSurfaceToFileA = NULL;
D3DXSAVETEXTURETOFILEATYPE PD3DXSaveTextureToFileA = NULL;
@@ -207,6 +208,18 @@ void InitPP(int adapter, int f, int aa_mode, D3DPRESENT_PARAMETERS *pp)
GetClientRect(hWnd, &client);
xres = pp->BackBufferWidth = client.right - client.left;
yres = pp->BackBufferHeight = client.bottom - client.top;
+
-
//Add here: Show Current Screen resolution
-
char x[100]={0};
-
char y[100]={0};
-
char Cur_Res[100]="Current Screen resolution: ";
-
_itoa(xres,x,10);
-
_itoa(yres,y,10);
-
strcat(Cur_Res,x);
-
strcat(Cur_Res," x ");
-
strcat(Cur_Res,y);
-
OSD::AddMessage(Cur_Res , 6000);
-
}//End
pp->SwapEffect = D3DSWAPEFFECT_DISCARD;
pp->PresentationInterval = g_Config.bVSync ? D3DPRESENT_INTERVAL_DEFAULT : D3DPRESENT_INTERVAL_IMMEDIATE;