Fixed stretch to fit for separate render window
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1094 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
825335fc2c
commit
3303639a6e
|
@ -539,9 +539,15 @@ void OpenGL_Update()
|
|||
rcWindow.bottom = GLWin.height;
|
||||
|
||||
#elif defined(_WIN32)
|
||||
if (!EmuWindow::GetParentWnd()) return;
|
||||
RECT rcWindow;
|
||||
if (!EmuWindow::GetParentWnd()) {
|
||||
GetWindowRect(EmuWindow::GetWnd(), &rcWindow);
|
||||
rcWindow.top += 25;
|
||||
}
|
||||
else
|
||||
{
|
||||
GetWindowRect(EmuWindow::GetParentWnd(), &rcWindow);
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------------------
|
||||
// Get the new window width and height
|
||||
|
@ -551,7 +557,9 @@ void OpenGL_Update()
|
|||
int width = rcWindow.right - rcWindow.left;
|
||||
int height = rcWindow.bottom - rcWindow.top;
|
||||
|
||||
if (EmuWindow::GetParentWnd() != 0)
|
||||
::MoveWindow(EmuWindow::GetWnd(), 0,0,width,height, FALSE);
|
||||
|
||||
nBackbufferWidth = width;
|
||||
nBackbufferHeight = height;
|
||||
|
||||
|
|
Loading…
Reference in New Issue