Merge pull request #4204 from lunixoid/master

Fixed twice assigned values
This commit is contained in:
Martin Fleisz 2017-10-31 09:55:43 +01:00 committed by GitHub
commit b52a6f7b3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -269,7 +269,6 @@ static void xf_input_detect_pan(xfContext* xfc)
PubSub_OnPanningChange(((rdpContext*) xfc)->pubSub, xfc, &e);
}
px_vector = 0;
px_vector = 0;
py_vector = 0;
z_vector = 0;
}
@ -283,7 +282,6 @@ static void xf_input_detect_pan(xfContext* xfc)
PubSub_OnPanningChange(((rdpContext*) xfc)->pubSub, xfc, &e);
}
px_vector = 0;
px_vector = 0;
py_vector = 0;
z_vector = 0;
}
@ -302,7 +300,6 @@ static void xf_input_detect_pan(xfContext* xfc)
}
py_vector = 0;
px_vector = 0;
py_vector = 0;
z_vector = 0;
}
else if (py_vector < -PAN_THRESHOLD)
@ -316,7 +313,6 @@ static void xf_input_detect_pan(xfContext* xfc)
}
py_vector = 0;
px_vector = 0;
py_vector = 0;
z_vector = 0;
}
}
@ -346,7 +342,6 @@ static void xf_input_detect_pinch(xfContext* xfc)
z_vector = 0;
px_vector = 0;
py_vector = 0;
z_vector = 0;
}
else
{
@ -370,7 +365,6 @@ static void xf_input_detect_pinch(xfContext* xfc)
z_vector = 0;
px_vector = 0;
py_vector = 0;
z_vector = 0;
}
if (z_vector < -ZOOM_THRESHOLD)
@ -381,7 +375,6 @@ static void xf_input_detect_pinch(xfContext* xfc)
z_vector = 0;
px_vector = 0;
py_vector = 0;
z_vector = 0;
}
}
}