From 7e920f1675ce18c741c2caded395e3fd1c15c224 Mon Sep 17 00:00:00 2001 From: hermet Date: Wed, 12 Dec 2012 12:40:59 +0000 Subject: [PATCH] evas - backport 80758 git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/branches/evas-1.7@80759 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/modules/engines/gl_common/evas_gl_line.c | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/src/modules/engines/gl_common/evas_gl_line.c b/src/modules/engines/gl_common/evas_gl_line.c index 3761c9e..9fedc11 100644 --- a/src/modules/engines/gl_common/evas_gl_line.c +++ b/src/modules/engines/gl_common/evas_gl_line.c @@ -28,22 +28,16 @@ evas_gl_common_line_draw(Evas_Engine_GL_Context *gc, int x1, int y1, int x2, int cw = gc->dc->clip.w; ch = gc->dc->clip.h; //Increment pixels since the gl line origin position is slightly different. - if (x1 == x2) + if ((gc->rot == 0) ||(gc->rot == 90)) { - if ((gc->rot == 0) ||(gc->rot == 90)) - { - x1++; - x2++; - } + x1++; + x2++; } - if (y1 == y2) + if ((gc->rot == 90) || (gc->rot == 180)) { - if ((gc->rot == 90) || (gc->rot == 180)) - { - y1++; - y2++; - } + y1++; + y2++; } evas_gl_common_context_line_push(gc, x1, y1, x2, y2, -- 2.7.4