forked from enlightenment/efl
evas/line - fix the line vertical drawing on gl backened.
SVN revision: 78034
This commit is contained in:
parent
68fcefc97b
commit
77e2edbedd
|
@ -1099,7 +1099,11 @@
|
||||||
|
|
||||||
* Fix C code fallback line rendering path in software
|
* Fix C code fallback line rendering path in software
|
||||||
|
|
||||||
|
|
||||||
2012-10-17 Carsten Haitzler (The Rasterman)
|
2012-10-17 Carsten Haitzler (The Rasterman)
|
||||||
|
|
||||||
* Like 16bpp engine, 8bpp engine goes the way of the dodo.
|
* Like 16bpp engine, 8bpp engine goes the way of the dodo.
|
||||||
|
|
||||||
|
2012-10-16 ChunEon Park (Hermet)
|
||||||
|
|
||||||
|
* Fix the vertical line drawing on gl backened.
|
||||||
|
|
|
@ -27,6 +27,21 @@ evas_gl_common_line_draw(Evas_Engine_GL_Context *gc, int x1, int y1, int x2, int
|
||||||
cx = gc->dc->clip.x; cy = gc->dc->clip.y;
|
cx = gc->dc->clip.x; cy = gc->dc->clip.y;
|
||||||
cw = gc->dc->clip.w; ch = gc->dc->clip.h;
|
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)
|
||||||
|
x1++;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (y1 == y2)
|
||||||
|
{
|
||||||
|
if ((gc->rot == 90) || (gc->rot == 180))
|
||||||
|
y1++;
|
||||||
|
}
|
||||||
|
|
||||||
|
x2++; y2++;
|
||||||
|
|
||||||
evas_gl_common_context_line_push(gc, x1, y1, x2, y2,
|
evas_gl_common_context_line_push(gc, x1, y1, x2, y2,
|
||||||
c, cx, cy, cw, ch,
|
c, cx, cy, cw, ch,
|
||||||
r, g, b, a);
|
r, g, b, a);
|
||||||
|
|
Loading…
Reference in New Issue