From: hermet Date: Mon, 13 Feb 2012 05:05:59 +0000 (+0000) Subject: evas/gl_common - set line color with draw context. X-Git-Tag: accepted/2.0/20130306.225542~136^2~26 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=29e6dcaa60f668a162798b8935fe4f582f0b2daf;p=profile%2Fivi%2Fevas.git 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 --- 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();