summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChunEon Park <hermet@hermet.pe.kr>2012-12-12 12:39:32 +0000
committerChunEon Park <hermet@hermet.pe.kr>2012-12-12 12:39:32 +0000
commit19e600254faf3e7f85dc47929f28acc63d37283e (patch)
tree2326257e20742a63db60c15bea00fd8820e8f94c
parentb11f968b374e032751188dc9ded8d8d025355ce5 (diff)
evas/gl - actually, this is correct.
SVN revision: 80758
-rw-r--r--src/modules/evas/engines/gl_common/evas_gl_line.c19
1 files changed, 6 insertions, 13 deletions
diff --git a/src/modules/evas/engines/gl_common/evas_gl_line.c b/src/modules/evas/engines/gl_common/evas_gl_line.c
index 9d7c258375..4a8c1c31ae 100644
--- a/src/modules/evas/engines/gl_common/evas_gl_line.c
+++ b/src/modules/evas/engines/gl_common/evas_gl_line.c
@@ -29,22 +29,15 @@ evas_gl_common_line_draw(Evas_Engine_GL_Context *gc, int x1, int y1, int x2, int
29 cw = gc->dc->clip.w; ch = gc->dc->clip.h; 29 cw = gc->dc->clip.w; ch = gc->dc->clip.h;
30 30
31 //Increment pixels since the gl line origin position is slightly different. 31 //Increment pixels since the gl line origin position is slightly different.
32 if (x1 == x2) 32 if ((gc->rot == 0) || (gc->rot == 90))
33 { 33 {
34 if ((gc->rot == 0) ||(gc->rot == 90)) 34 x1++;
35 { 35 x2++;
36 x1++;
37 x2++;
38 }
39 } 36 }
40 37 if ((gc->rot == 90) || (gc->rot == 180))
41 if (y1 == y2)
42 { 38 {
43 if ((gc->rot == 90) || (gc->rot == 180)) 39 y1++;
44 { 40 y2++;
45 y1++;
46 y2++;
47 }
48 } 41 }
49 42
50 evas_gl_common_context_line_push(gc, x1, y1, x2, y2, 43 evas_gl_common_context_line_push(gc, x1, y1, x2, y2,