From 40d84d4be123c43886e7ca705d60fe0dc93b0392 Mon Sep 17 00:00:00 2001 From: Roman Kalashnikov Date: Tue, 31 Oct 2017 00:11:25 +0300 Subject: [PATCH] Fixed twice assigned values --- client/X11/xf_input.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/client/X11/xf_input.c b/client/X11/xf_input.c index ec08e9f96..1db2ff1f0 100644 --- a/client/X11/xf_input.c +++ b/client/X11/xf_input.c @@ -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; } } }