summaryrefslogtreecommitdiff
path: root/legacy
diff options
context:
space:
mode:
authorChunEon Park <hermet@hermet.pe.kr>2012-10-16 05:31:28 +0000
committerChunEon Park <hermet@hermet.pe.kr>2012-10-16 05:31:28 +0000
commit77e2edbedd3eaf0449f43c5438d8c022e6409dfa (patch)
tree119511d259ec4f203fd544323e91eb7291be868a /legacy
parent68fcefc97b1c7916b9d7bf9df0a6f5ef342235e1 (diff)
evas/line - fix the line vertical drawing on gl backened.
SVN revision: 78034
Diffstat (limited to 'legacy')
-rw-r--r--legacy/evas/ChangeLog4
-rw-r--r--legacy/evas/src/modules/engines/gl_common/evas_gl_line.c15
2 files changed, 19 insertions, 0 deletions
diff --git a/legacy/evas/ChangeLog b/legacy/evas/ChangeLog
index 021d919f83..d0e04b8640 100644
--- a/legacy/evas/ChangeLog
+++ b/legacy/evas/ChangeLog
@@ -1099,7 +1099,11 @@
1099 1099
1100 * Fix C code fallback line rendering path in software 1100 * Fix C code fallback line rendering path in software
1101 1101
1102
11022012-10-17 Carsten Haitzler (The Rasterman) 11032012-10-17 Carsten Haitzler (The Rasterman)
1103 1104
1104 * Like 16bpp engine, 8bpp engine goes the way of the dodo. 1105 * Like 16bpp engine, 8bpp engine goes the way of the dodo.
1105 1106
11072012-10-16 ChunEon Park (Hermet)
1108
1109 * Fix the vertical line drawing on gl backened.
diff --git a/legacy/evas/src/modules/engines/gl_common/evas_gl_line.c b/legacy/evas/src/modules/engines/gl_common/evas_gl_line.c
index fb9ae561d9..c13fa255a5 100644
--- a/legacy/evas/src/modules/engines/gl_common/evas_gl_line.c
+++ b/legacy/evas/src/modules/engines/gl_common/evas_gl_line.c
@@ -27,6 +27,21 @@ evas_gl_common_line_draw(Evas_Engine_GL_Context *gc, int x1, int y1, int x2, int
27 cx = gc->dc->clip.x; cy = gc->dc->clip.y; 27 cx = gc->dc->clip.x; cy = gc->dc->clip.y;
28 cw = gc->dc->clip.w; ch = gc->dc->clip.h; 28 cw = gc->dc->clip.w; ch = gc->dc->clip.h;
29 29
30 //Increment pixels since the gl line origin position is slightly different
31 if (x1 == x2)
32 {
33 if (gc->rot == 0)
34 x1++;
35 }
36
37 if (y1 == y2)
38 {
39 if ((gc->rot == 90) || (gc->rot == 180))
40 y1++;
41 }
42
43 x2++; y2++;
44
30 evas_gl_common_context_line_push(gc, x1, y1, x2, y2, 45 evas_gl_common_context_line_push(gc, x1, y1, x2, y2,
31 c, cx, cy, cw, ch, 46 c, cx, cy, cw, ch,
32 r, g, b, a); 47 r, g, b, a);