ui/app: rename StageVisible and StageInvisible

StageRunning and StagePaused better reflect their use.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-05-12 14:59:07 +02:00
parent 4441a3e13e
commit e2a1f07b84
8 changed files with 30 additions and 30 deletions
+3 -3
View File
@@ -239,7 +239,7 @@ func createNativeWindow(opts *WindowOptions) (*window, error) {
}
w := &window{
hwnd: hwnd,
stage: StageInvisible,
stage: StagePaused,
}
winMap[hwnd] = w
w.hdc, err = getDC(hwnd)
@@ -324,9 +324,9 @@ func windowProc(hwnd syscall.Handle, msg uint32, wParam, lParam uintptr) uintptr
case _WM_SIZE:
switch wParam {
case _SIZE_MINIMIZED:
w.setStage(StageInvisible)
w.setStage(StagePaused)
case _SIZE_MAXIMIZED, _SIZE_RESTORED:
w.setStage(StageVisible)
w.setStage(StageRunning)
w.draw(true)
}
}