[PD-dev] CVS mods: -cordcolor and -guishadow

Adam Lindsay atl at comp.lancs.ac.uk
Tue Dec 10 18:52:13 CET 2002


Frank Barknecht said this at Tue, 10 Dec 2002 17:53:33 +0100:

>Hi,
>Adam Lindsay hat gesagt: // Adam Lindsay wrote:
>
>> -guishadow       -- add discrete shadows to basic objects
>
>The shadows work great now, I mean: they're gone!! You made me happy :)

Glad I could help. :)

>But this one doesn't work here. I always get the old green cords. I
>didn't look to much into it, but I tried to change s_main.c to
>include a red color:
>
>	strcpy(sys_cordcolor,"#ff0000");
>
>or init it with:
>char sys_cordcolor[] = "#0000bb";
>
>but I always get the green. I must be doing somthing wrong, maybe an
>old config somewhere...

Oops. Thanks for pointing that out. I believe that bug only showed up
when opening pre-existing patches. Sure enough, there was a line that I
missed in my changes last night. Here's the change I made:

% diff g_canvas.c.~1.1.1.2.2.4.~ g_canvas.c
858c858
<           sys_vgui(".x%x.c create line %d %d %d %d -width 2 -fill
#999900 -tags l%x\n",
---
>           sys_vgui(".x%x.c create line %d %d %d %d -width 2 -fill %s -
tags l%x\n",
860c860,861
<                       t.tr_lx1, t.tr_ly1, t.tr_lx2, t.tr_ly2, oc);
---
>                       t.tr_lx1, t.tr_ly1, t.tr_lx2, t.tr_ly2, 
>                       sys_cordcolor, oc);

Still not bug-free, but hopefully it will allow Frank to avoid any sign
of color on his screen. :p

Putting it into CVS now...

adam


-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Adam T. Lindsay                      atl at comp.lancs.ac.uk
 Computing Dept, Lancaster University   +44(0)1524/594.537
 Lancaster, LA1 4YR, UK             Fax:+44(0)1524/593.608
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-





More information about the Pd-dev mailing list