Platform/Win32/Win32Display.cpp: remove fullscreen stuff in create()
This commit is contained in:
parent
fc38bb59a9
commit
3c6a842c9d
1 changed files with 4 additions and 17 deletions
|
|
@ -44,18 +44,9 @@ bool Win32Display::create(DisplayDescription description)
|
||||||
firstTime = false;
|
firstTime = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (description.decoration & DisplayDecorate::Fullscreen) {
|
// Set window to center and set decoration flags.
|
||||||
m_fs_mode = description.mode;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (m_fs_mode.empty() == false) {
|
|
||||||
// Only set these flags for fullscreen (borderless)
|
|
||||||
flags = WS_VISIBLE | WS_POPUP;
|
|
||||||
} else {
|
|
||||||
// Set window to center and set decorator flags for windowed displays.
|
|
||||||
pos = centerWindow(description.mode.width, description.mode.height);
|
pos = centerWindow(description.mode.width, description.mode.height);
|
||||||
flags = getWin32Flags(description.decoration);
|
flags = getWin32Flags(description.decoration);
|
||||||
}
|
|
||||||
|
|
||||||
// Create window.
|
// Create window.
|
||||||
m_handle = CreateWindowExA(0, WND_CLASSNAME, "", flags,
|
m_handle = CreateWindowExA(0, WND_CLASSNAME, "", flags,
|
||||||
|
|
@ -67,11 +58,7 @@ bool Win32Display::create(DisplayDescription description)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_fs_mode.empty() == false) {
|
|
||||||
enterFullscreen(m_fs_mode);
|
|
||||||
} else {
|
|
||||||
setSize(description.mode.width, description.mode.height);
|
setSize(description.mode.width, description.mode.height);
|
||||||
}
|
|
||||||
|
|
||||||
// Store the size for use later.
|
// Store the size for use later.
|
||||||
m_size = getSize();
|
m_size = getSize();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue