From: Nigel Stewart Date: Mon, 8 Mar 2004 05:49:55 +0000 (+0000) Subject: Resolved bug #869765 glutIgnoreKeyRepeat() Fix (Win32) X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=commitdiff_plain;ds=sidebyside;h=9c3c848ff232b56793bef2d91d29283ff80326b4;p=freeglut Resolved bug #869765 glutIgnoreKeyRepeat() Fix (Win32) glutIgnoreKeyRepeat now behaves correctly on Win32 git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@472 7f0cb862-5218-0410-a997-914c9d46530a --- diff --git a/src/freeglut_main.c b/src/freeglut_main.c index 722f075..9bc7a91 100644 --- a/src/freeglut_main.c +++ b/src/freeglut_main.c @@ -1565,7 +1565,7 @@ LRESULT CALLBACK fgWindowProc( HWND hWnd, UINT uMsg, WPARAM wParam, int keypress = -1; POINT mouse_pos ; - if( fgState.IgnoreKeyRepeat && (lParam & KF_REPEAT) ) + if( fgState.IgnoreKeyRepeat && (HIWORD(lParam) & KF_REPEAT) ) break; /* @@ -1714,7 +1714,7 @@ LRESULT CALLBACK fgWindowProc( HWND hWnd, UINT uMsg, WPARAM wParam, case WM_SYSCHAR: case WM_CHAR: { - if( fgState.IgnoreKeyRepeat && (lParam & KF_REPEAT) ) + if( fgState.IgnoreKeyRepeat && (HIWORD(lParam) & KF_REPEAT) ) break; fgState.Modifiers = fgGetWin32Modifiers( );