Skip to content

Commit 951d558

Browse files
committed
Fixes issue with Wine's implementation of CreateWindow...by removing that call
1 parent 75c0a5d commit 951d558

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

engine/system/win/sys_video.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,19 +89,16 @@ sys_video_c::sys_video_c(sys_IMain* sysHnd)
8989
if (RegisterClass(&wndClass) == 0) {
9090
sys->Error("Unable to register main window class");
9191
}
92-
9392
// Create the window
9493
hwnd = CreateWindowEx(
95-
0, CFG_TITLE " Class", CFG_TITLE, WS_POPUP | WS_VISIBLE,/* | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX | WS_SIZEBOX | WS_MAXIMIZEBOX, */
94+
0, CFG_TITLE " Class", CFG_TITLE, WS_POPUP,/* | WS_VISIBLE | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX | WS_SIZEBOX | WS_MAXIMIZEBOX, */
9695
0, 0, 500, 500,
9796
NULL, NULL, sys->hinst, NULL
9897
);
9998
if (hwnd == NULL) {
10099
sys->Error("Unable to create window");
101100
}
102101
SetWindowLongPtr(hwnd, GWLP_USERDATA, (LONG_PTR)sys);
103-
ShowWindow(hwnd, SW_HIDE);
104-
105102
// Process any messages generated during creation
106103
sys->RunMessages();
107104
}

0 commit comments

Comments
 (0)