summaryrefslogtreecommitdiff
path: root/src/sna/sna_transform.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sna/sna_transform.c')
-rw-r--r--src/sna/sna_transform.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sna/sna_transform.c b/src/sna/sna_transform.c
index 3b54df48..b62b3238 100644
--- a/src/sna/sna_transform.c
+++ b/src/sna/sna_transform.c
@@ -135,14 +135,14 @@ sna_transform_is_imprecise_integer_translation(const PictTransform *t,
int f;
f = pixman_fixed_fraction(t->matrix[0][2]);
- if (f < IntToxFixed(1)/4 || f > IntToxFixed(3)/4) {
- DBG(("%s: imprecise, fractional translation X\n", __FUNCTION__));
+ if (f > IntToxFixed(1)/4 && f < IntToxFixed(3)/4) {
+ DBG(("%s: imprecise, fractional translation X: %x\n", __FUNCTION__, f));
return false;
}
f = pixman_fixed_fraction(t->matrix[1][2]);
- if (f < IntToxFixed(1)/4 || f > IntToxFixed(3)/4) {
- DBG(("%s: imprecise, fractional translation Y\n", __FUNCTION__));
+ if (f > IntToxFixed(1)/4 && f < IntToxFixed(3)/4) {
+ DBG(("%s: imprecise, fractional translation Y: %x\n", __FUNCTION__, f));
return false;
}
}