From 29e6dcaa60f668a162798b8935fe4f582f0b2daf Mon Sep 17 00:00:00 2001 From: hermet Date: Mon, 13 Feb 2012 05:05:59 +0000 Subject: [PATCH] evas/gl_common - set line color with draw context. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@67870 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/modules/engines/gl_common/evas_gl_line.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/modules/engines/gl_common/evas_gl_line.c b/src/modules/engines/gl_common/evas_gl_line.c index 48499ea..f8ace2e 100644 --- a/src/modules/engines/gl_common/evas_gl_line.c +++ b/src/modules/engines/gl_common/evas_gl_line.c @@ -17,7 +17,10 @@ evas_gl_common_line_draw(Evas_Engine_GL_Context *gc, int x1, int y1, int x2, int } else { - r = g = b = a = 255; + a = (dc->col.col >> 24) & 0xff; + r = (dc->col.col >> 16) & 0xff; + g = (dc->col.col >> 8 ) & 0xff; + b = (dc->col.col ) & 0xff; } glFlush(); -- 2.7.4