diff options
-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; |