mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 08:15:18 -04:00
windisplay: fix issues with runtime fullscreen switching
This commit is contained in:
parent
5b00ff1aa7
commit
08c686ba18
@ -979,12 +979,12 @@ make_style(const WindowProperties &properties) {
|
||||
|
||||
DWORD window_style = WS_POPUP | WS_CLIPCHILDREN | WS_CLIPSIBLINGS;
|
||||
|
||||
if (_properties.get_fullscreen()) {
|
||||
if (properties.get_fullscreen()) {
|
||||
window_style |= WS_SYSMENU;
|
||||
} else if (!_properties.get_undecorated()) {
|
||||
} else if (!properties.get_undecorated()) {
|
||||
window_style |= (WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX);
|
||||
|
||||
if (!_properties.get_fixed_size()) {
|
||||
if (!properties.get_fixed_size()) {
|
||||
window_style |= (WS_SIZEBOX | WS_MAXIMIZEBOX);
|
||||
} else {
|
||||
window_style |= WS_BORDER;
|
||||
|
Loading…
x
Reference in New Issue
Block a user