From 3a0f535a40d21f5d594c2fcf9e537b7499238ef9 Mon Sep 17 00:00:00 2001 From: ChunEon Park Date: Tue, 12 Jun 2012 02:52:51 +0000 Subject: [PATCH] evas/line - Fixed simple line drawing on s/w backened. Unmatched loop scope caused the destination buffer pointer march in place. SVN revision: 71977 --- legacy/evas/ChangeLog | 5 +++++ legacy/evas/src/lib/engines/common/evas_line_main.c | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/legacy/evas/ChangeLog b/legacy/evas/ChangeLog index b13c5b260b..c28514e437 100644 --- a/legacy/evas/ChangeLog +++ b/legacy/evas/ChangeLog @@ -791,3 +791,8 @@ 2012-06-10 Cedric Bail * Limit the updated region to fit in CPU cache for Pipe rendering. + +2012-06-12 ChunEon Park + + * Fixed simple line drawing on s/w backened. Unmatched loop scope caused the + destination buffer pointer march in place. diff --git a/legacy/evas/src/lib/engines/common/evas_line_main.c b/legacy/evas/src/lib/engines/common/evas_line_main.c index 469f396a02..fc1385f293 100644 --- a/legacy/evas/src/lib/engines/common/evas_line_main.c +++ b/legacy/evas/src/lib/engines/common/evas_line_main.c @@ -361,14 +361,14 @@ _evas_draw_simple_line(RGBA_Image *dst, RGBA_Draw_Context *dc, int x0, int y0, i # endif #endif pfunc(0, 255, color, p); - } #ifdef HAVE_PIXMAN # ifdef PIXMAN_LINE - pixman_x_position += x_unit; - pixman_y_position += 1; + pixman_x_position += x_unit; + pixman_y_position += 1; # endif #endif - p += dstw; + p += dstw; + } } }