From 72f2402a7fdf2dc63ccd141b695e99f9ac261ca5 Mon Sep 17 00:00:00 2001 From: Caspian Rychlik-Prince Date: Sat, 7 Jun 2003 12:48:21 +0000 Subject: [PATCH] Minor tweaks to window creation. --- src/native/win32/org_lwjgl_Window.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/native/win32/org_lwjgl_Window.cpp b/src/native/win32/org_lwjgl_Window.cpp index 4f57c51f..3f771a3d 100644 --- a/src/native/win32/org_lwjgl_Window.cpp +++ b/src/native/win32/org_lwjgl_Window.cpp @@ -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);