From 214794419b2e736d581bb57bf9b5838b09e28f1c Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Thu, 11 Apr 2013 07:35:56 +0200 Subject: NEWT/WindowsWindow.c: Simplify pointerVisible branch for calling SafeShowCursor(..) --- src/newt/native/WindowsWindow.c | 9 ++------- 1 file 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; -- cgit v1.2.3