Fixed twice assigned values

This commit is contained in:
Roman Kalashnikov 2017-10-31 00:11:25 +03:00 committed by GitHub
parent 612e8b0710
commit 40d84d4be1
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); PubSub_OnPanningChange(((rdpContext*) xfc)->pubSub, xfc, &e);
} }
px_vector = 0; px_vector = 0;
px_vector = 0;
py_vector = 0; py_vector = 0;
z_vector = 0; z_vector = 0;
} }
@ -283,7 +282,6 @@ static void xf_input_detect_pan(xfContext* xfc)
PubSub_OnPanningChange(((rdpContext*) xfc)->pubSub, xfc, &e); PubSub_OnPanningChange(((rdpContext*) xfc)->pubSub, xfc, &e);
} }
px_vector = 0; px_vector = 0;
px_vector = 0;
py_vector = 0; py_vector = 0;
z_vector = 0; z_vector = 0;
} }
@ -302,7 +300,6 @@ static void xf_input_detect_pan(xfContext* xfc)
} }
py_vector = 0; py_vector = 0;
px_vector = 0; px_vector = 0;
py_vector = 0;
z_vector = 0; z_vector = 0;
} }
else if (py_vector < -PAN_THRESHOLD) else if (py_vector < -PAN_THRESHOLD)
@ -316,7 +313,6 @@ static void xf_input_detect_pan(xfContext* xfc)
} }
py_vector = 0; py_vector = 0;
px_vector = 0; px_vector = 0;
py_vector = 0;
z_vector = 0; z_vector = 0;
} }
} }
@ -346,7 +342,6 @@ static void xf_input_detect_pinch(xfContext* xfc)
z_vector = 0; z_vector = 0;
px_vector = 0; px_vector = 0;
py_vector = 0; py_vector = 0;
z_vector = 0;
} }
else else
{ {
@ -370,7 +365,6 @@ static void xf_input_detect_pinch(xfContext* xfc)
z_vector = 0; z_vector = 0;
px_vector = 0; px_vector = 0;
py_vector = 0; py_vector = 0;
z_vector = 0;
} }
if (z_vector < -ZOOM_THRESHOLD) if (z_vector < -ZOOM_THRESHOLD)
@ -381,7 +375,6 @@ static void xf_input_detect_pinch(xfContext* xfc)
z_vector = 0; z_vector = 0;
px_vector = 0; px_vector = 0;
py_vector = 0; py_vector = 0;
z_vector = 0;
} }
} }
} }