mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-02-23 16:15:11 +01:00
Minor tweaks to window creation.
This commit is contained in:
parent
e143541c01
commit
72f2402a7f
|
|
@ -271,10 +271,10 @@ bool createWindow(const char * title, int x, int y, int width, int height, bool
|
|||
int exstyle, windowflags;
|
||||
|
||||
if (fullscreen) {
|
||||
exstyle = WS_EX_TOPMOST;
|
||||
exstyle = WS_EX_APPWINDOW | WS_EX_TOPMOST;
|
||||
windowflags = WS_POPUP | WS_VISIBLE;
|
||||
} else {
|
||||
exstyle = 0;
|
||||
exstyle = WS_EX_APPWINDOW;
|
||||
windowflags = WS_OVERLAPPED | WS_BORDER | WS_CAPTION | WS_VISIBLE | WS_MINIMIZEBOX | WS_SYSMENU;
|
||||
}
|
||||
|
||||
|
|
@ -313,8 +313,8 @@ bool createWindow(const char * title, int x, int y, int width, int height, bool
|
|||
printf("Created window\n");
|
||||
#endif
|
||||
|
||||
//ShowWindow(hwnd, SW_SHOWNORMAL);
|
||||
ShowWindow(hwnd, SW_SHOW);
|
||||
ShowWindow(hwnd, SW_SHOWNORMAL);
|
||||
//ShowWindow(hwnd, SW_SHOW);
|
||||
UpdateWindow(hwnd);
|
||||
SetForegroundWindow(hwnd);
|
||||
SetFocus(hwnd);
|
||||
|
|
|
|||
Loading…
Reference in a new issue