Procházet zdrojové kódy

Fixed glfwShowWindow restoring maximized windows.

Fixes #264.
Camilla Berglund před 11 roky
rodič
revize
b91116e2bc
2 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 1 0
      README.md
  2. 1 1
      src/win32_window.c

+ 1 - 0
README.md

@@ -78,6 +78,7 @@ The following dependencies are needed by the examples and test programs:
                    the error callback
  - [Win32] Bugfix: Some keys were reported based on the current layout instead
                    of their physical location
+ - [Win32] Bugfix: Maximized hidden windows were restored by `glfwShowWindow`
  - [X11] Added run-time support for systems lacking the XKB extension
  - [X11] Made GLX 1.3 the minimum supported version
  - [X11] Bugfix: The case of finding no usable CRTCs was not detected

+ 1 - 1
src/win32_window.c

@@ -1154,7 +1154,7 @@ void _glfwPlatformRestoreWindow(_GLFWwindow* window)
 
 void _glfwPlatformShowWindow(_GLFWwindow* window)
 {
-    ShowWindow(window->win32.handle, SW_SHOWNORMAL);
+    ShowWindow(window->win32.handle, SW_SHOW);
     BringWindowToTop(window->win32.handle);
     SetForegroundWindow(window->win32.handle);
     SetFocus(window->win32.handle);