diff options
author | Sven Gothel <[email protected]> | 2013-04-11 07:35:56 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2013-04-11 07:35:56 +0200 |
commit | 214794419b2e736d581bb57bf9b5838b09e28f1c (patch) | |
tree | 7c46cf41ba8e51fe22993209e495c9c97389eb66 /src/newt | |
parent | db255a2d998ab85f4d027568509dc1028e62f604 (diff) |
NEWT/WindowsWindow.c: Simplify pointerVisible branch for calling SafeShowCursor(..)
Diffstat (limited to 'src/newt')
-rw-r--r-- | src/newt/native/WindowsWindow.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/newt/native/WindowsWindow.c b/src/newt/native/WindowsWindow.c index eecc2e075..7d161d57c 100644 --- a/src/newt/native/WindowsWindow.c +++ b/src/newt/native/WindowsWindow.c @@ -1043,13 +1043,8 @@ static LRESULT CALLBACK wndProc(HWND wnd, UINT message, WPARAM wParam, LPARAM lP BOOL visibilityChangeSuccessful; if (1 == wud->pointerVisible) { visibilityChangeSuccessful = SafeShowCursor(TRUE); - } else { - if (-1 == wud->pointerVisible) { - visibilityChangeSuccessful = SafeShowCursor(FALSE); - } else { - // it should never happen - visibilityChangeSuccessful = FALSE; - } + } else /* -1 == wud->pointerVisible */ { + visibilityChangeSuccessful = SafeShowCursor(FALSE); } useDefWindowProc = visibilityChangeSuccessful ? 1 : 0; pointerVisible = 0; |