From 03d6d3d64acf838ed6f91743a6baf1e8166d4174 Mon Sep 17 00:00:00 2001 From: David Foley Date: Thu, 12 May 2011 14:19:28 -0500 Subject: [PATCH] wcmCommon.c: fix cw and ccw swap Return cw and ccw to expected behavior. Tested-by: Buran Ayuthia Signed-off-by: David Foley --- src/wcmCommon.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wcmCommon.c b/src/wcmCommon.c index 7f8dfb1..c8aa9e4 100644 --- a/src/wcmCommon.c +++ b/src/wcmCommon.c @@ -479,9 +479,9 @@ void wcmRotateAndScaleCoordinates(InputInfoPtr pInfo, int* x, int* y) axis_x->max_value, axis_x->min_value); } - if (common->wcmRotate == ROTATE_CCW) + if (common->wcmRotate == ROTATE_CW) *y = axis_y->max_value - (*y - axis_y->min_value); - else if (common->wcmRotate == ROTATE_CW) + else if (common->wcmRotate == ROTATE_CCW) *x = axis_x->max_value - (*x - axis_x->min_value); else if (common->wcmRotate == ROTATE_HALF) { -- 1.7.1