From aeb2433acd108dfd06dda3e863433c83ee23a213 Mon Sep 17 00:00:00 2001 From: Ykkrosh Date: Thu, 29 Jul 2004 16:02:11 +0000 Subject: [PATCH] Don't get confused by messages sent when enabling NVIDIA's QuickZoom This was SVN commit r840. --- source/lib/sysdep/win/wsdl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/lib/sysdep/win/wsdl.cpp b/source/lib/sysdep/win/wsdl.cpp index d1ef475cc8..7264c4bed0 100755 --- a/source/lib/sysdep/win/wsdl.cpp +++ b/source/lib/sysdep/win/wsdl.cpp @@ -350,7 +350,7 @@ return_char: sdl_btn = (msg.wParam & BIT(31))? SDL_BUTTON_WHEELUP : SDL_BUTTON_WHEELDOWN; break; // event filled in mouse code below default: - if( msg.message >= WM_APP ) + if( msg.message >= WM_APP && msg.message < 0xC000 ) { assert( SDL_USEREVENT+(msg.message-WM_APP) <= 0xff && "Message too far above WM_APP"); ev->type = (u8)(SDL_USEREVENT+(msg.message-WM_APP));