]> granicus.if.org Git - graphviz/commitdiff
edge color themes
authorarif <devnull@localhost>
Fri, 8 May 2009 19:54:31 +0000 (19:54 +0000)
committerarif <devnull@localhost>
Fri, 8 May 2009 19:54:31 +0000 (19:54 +0000)
cmd/smyrna/draw.c
cmd/smyrna/glexpose.c

index f0d8c99624be351aeb8f92b12a435b21c6627505..aeeced1ea17892f1e1e0596024137c716aa40f3c 100755 (executable)
@@ -846,18 +846,19 @@ RGBColor GetRGBColor(char *color)
 {
     gvcolor_t cl;
     RGBColor c;
-    if (color != '\0') {
-
-       colorxlate(color, &cl, RGBA_DOUBLE);
-       c.R = (float) cl.u.RGBA[0];
-       c.G = (float) cl.u.RGBA[1];
-       c.B = (float) cl.u.RGBA[2];
-       c.A = (float) cl.u.RGBA[3];
-    } else {
-       c.R = view->penColor.R;
-       c.G = view->penColor.G;
-       c.B = view->penColor.B;
-       c.A = view->penColor.A;
+    if (color != '\0') 
+       {
+               colorxlate(color, &cl, RGBA_DOUBLE);
+               c.R = (float) cl.u.RGBA[0];
+               c.G = (float) cl.u.RGBA[1];
+               c.B = (float) cl.u.RGBA[2];
+               c.A = (float) cl.u.RGBA[3];
+    } else 
+       {
+               c.R = view->penColor.R;
+               c.G = view->penColor.G;
+               c.B = view->penColor.B;
+               c.A = view->penColor.A;
     }
     return c;
 }
index 4220dc0783b216c885f7c0514b200ac76617ee27..f9efe31f30522fd795aadb5806d4dc74963db98c 100644 (file)
@@ -103,6 +103,7 @@ int glexpose_main(ViewInfo * view)
     drawBorders(view);
        drawRotatingTools();
 //             draw_stuff();
+//     test_color_pallete();