summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTaekyun Kim <tkq.kim@samsung.com>2011-12-15 17:01:12 +0900
committerTaekyun Kim <tkq.kim@samsung.com>2012-01-02 22:28:15 +0900
commit86647af6d302bec2d4fd10030534acd6726e4b4f (patch)
tree7082cb24e0d5fe89ab5045b85ab606ea79752cdb
parent6098555a345257a463ccd08b3311b856654df86f (diff)
mono-scan-converter: Fix increment of x coordinate of an edge while scan conversionimage_backend
We should not increase quotient when remainder is zero
-rw-r--r--src/cairo-mono-scan-converter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-mono-scan-converter.c b/src/cairo-mono-scan-converter.c
index a617f484..a635ca6d 100644
--- a/src/cairo-mono-scan-converter.c
+++ b/src/cairo-mono-scan-converter.c
@@ -339,7 +339,7 @@ row (struct mono_scan_converter *c, unsigned int mask)
if (--edge->height_left) {
edge->x.quo += edge->dxdy.quo;
edge->x.rem += edge->dxdy.rem;
- if (edge->x.rem >= 0) {
+ if (edge->x.rem > 0) {
++edge->x.quo;
edge->x.rem -= edge->dy;
}