evas/gl_common - set line color with draw context.
authorhermet <hermet@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 13 Feb 2012 05:05:59 +0000 (05:05 +0000)
committerhermet <hermet@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 13 Feb 2012 05:05:59 +0000 (05:05 +0000)
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

index 48499ea..f8ace2e 100644 (file)
@@ -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();