Fixed flicker and minimize issues on Windows. Simple mistake; should have used WM_WINDOWPOSCHANGED instead of WM_WINDOWPOSCHANGING. Startup looks wrong; will fix that next.

This commit is contained in:
Pietro Gagliardi 2015-04-08 20:37:32 -04:00
parent 47723aa8d9
commit 87bb732832
1 changed files with 1 additions and 4 deletions

View File

@ -1,9 +1,6 @@
// 6 april 2015 // 6 april 2015
#include "uipriv_windows.h" #include "uipriv_windows.h"
// TODO
// - [18:19] <ZeroOne> Though, if you minimise it and bring it back up, the buttons disappear until you resize the window. Not sure if you care about that or not.
struct uiWindow { struct uiWindow {
HWND hwnd; HWND hwnd;
uiControl *child; uiControl *child;
@ -32,7 +29,7 @@ static LRESULT CALLBACK uiWindowWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPA
if (sharedWndProc(hwnd, uMsg, wParam, lParam, &lResult) != FALSE) if (sharedWndProc(hwnd, uMsg, wParam, lParam, &lResult) != FALSE)
return lResult; return lResult;
switch (uMsg) { switch (uMsg) {
case WM_WINDOWPOSCHANGING: case WM_WINDOWPOSCHANGED:
if (w->child == NULL) if (w->child == NULL)
break; break;
if ((wp->flags & SWP_NOSIZE) != 0) if ((wp->flags & SWP_NOSIZE) != 0)