Remove unnecessary assignments in WM_GESTURE handler code
The "processed" flag is false by default, no need to explicitly reset it, this was just confusing.
This commit is contained in:
@@ -3204,10 +3204,7 @@ wxWindowMSW::MSWHandleMessage(WXLRESULT *result,
|
|||||||
case WM_GESTURE:
|
case WM_GESTURE:
|
||||||
{
|
{
|
||||||
if ( !GestureFuncs::IsOk() )
|
if ( !GestureFuncs::IsOk() )
|
||||||
{
|
|
||||||
processed = false;
|
|
||||||
break;
|
break;
|
||||||
}
|
|
||||||
|
|
||||||
// gestureInfo will contain the information about the gesture
|
// gestureInfo will contain the information about the gesture
|
||||||
GESTUREINFO gestureInfo = {0};
|
GESTUREINFO gestureInfo = {0};
|
||||||
@@ -3217,7 +3214,6 @@ wxWindowMSW::MSWHandleMessage(WXLRESULT *result,
|
|||||||
if ( !GestureFuncs::GetGestureInfo()((HGESTUREINFO)lParam, &gestureInfo) )
|
if ( !GestureFuncs::GetGestureInfo()((HGESTUREINFO)lParam, &gestureInfo) )
|
||||||
{
|
{
|
||||||
wxLogLastError("GetGestureInfo");
|
wxLogLastError("GetGestureInfo");
|
||||||
processed = false;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user