fix for fullscreen for both video plugins in windows

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@243 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Shawn Hoffman
2008-08-20 08:01:27 +00:00
parent e0b3e32860
commit e84721b13b
7 changed files with 30 additions and 29 deletions

View File

@ -135,7 +135,7 @@ namespace EmuWindow
}
HWND OpenWindow(HWND parent, HINSTANCE hInstance, bool windowed, int width, int height, const TCHAR *title)
HWND OpenWindow(HWND parent, HINSTANCE hInstance, int width, int height, const TCHAR *title)
{
wndClass.cbSize = sizeof( wndClass );
wndClass.style = CS_HREDRAW | CS_VREDRAW;
@ -153,7 +153,7 @@ namespace EmuWindow
m_hInstance = hInstance;
RegisterClassEx( &wndClass );
if (parent && windowed)
if (parent)
{
m_hWnd = CreateWindow(m_szClassName, title,
WS_CHILD,
@ -166,7 +166,7 @@ namespace EmuWindow
}
else
{
DWORD style = windowed ? WS_OVERLAPPEDWINDOW : WS_POPUP;
DWORD style = g_Config.bFullscreen ? WS_POPUP : WS_OVERLAPPEDWINDOW;
RECT rc = {0, 0, width, height};
AdjustWindowRect(&rc, style, false);
@ -202,7 +202,7 @@ namespace EmuWindow
HWND Create(HWND hParent, HINSTANCE hInstance, const TCHAR *title)
{
return OpenWindow(hParent, hInstance, true, 640, 480, title);
return OpenWindow(hParent, hInstance, 640, 480, title);
}
void Close()