summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2013-04-11 07:35:56 +0200
committerSven Gothel <[email protected]>2013-04-11 07:35:56 +0200
commit214794419b2e736d581bb57bf9b5838b09e28f1c (patch)
tree7c46cf41ba8e51fe22993209e495c9c97389eb66
parentdb255a2d998ab85f4d027568509dc1028e62f604 (diff)
NEWT/WindowsWindow.c: Simplify pointerVisible branch for calling SafeShowCursor(..)
-rw-r--r--src/newt/native/WindowsWindow.c9
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;