On Sun, 2009-03-08 at 19:47 -0400, Bob Paddock wrote: > > You'll notice I'm using Peter Clifton's GL code from his nightly git > > repository. > > I'm using the stoke GTK under Linux. Peter is there > any difference in hid/ps/ps.c? Not sure why there would be > for GL?
diff --git a/src/hid/ps/ps.c b/src/hid/ps/ps.c index d742a5f..cb96675 100644 --- a/src/hid/ps/ps.c +++ b/src/hid/ps/ps.c @@ -516,6 +516,10 @@ ps_set_layer (const char *name, int group, int empty) int idx = (group >= 0 && group < max_layer) ? PCB->LayerGroups.Entries[group][0] : group; + + if (SL_TYPE (idx) == SL_FINISHED) + return 0; + if (name == 0) name = PCB->Data->Layer[idx].Name; In order to control the sub-compositing of layers, I added a SL_FINISHED callout to the set_layer() hook, so that the GL HID could track when it needed to destroy / reassign resources used to sub-composite a given layer. (Or to finish off the compositing operation). I don't expect this would cause any differences in behaviour to git HEAD code. -- Peter Clifton Electrical Engineering Division, Engineering Department, University of Cambridge, 9, JJ Thomson Avenue, Cambridge CB3 0FA Tel: +44 (0)7729 980173 - (No signal in the lab!) _______________________________________________ geda-user mailing list geda-user@moria.seul.org http://www.seul.org/cgi-bin/mailman/listinfo/geda-user