On Sun, 2008-06-22 at 20:26 +0100, Peter Clifton wrote:
> On Sun, 2008-06-22 at 19:09 +0000, Kai-Martin Knaak wrote:

> > * There is no preview if I drag a track with the mouse.
> 
> Ok.. checking, something seems to have regressed there. I suspect I'm
> generating degenerate triangles with coincident vertices, which GL is
> not rendering. I need to fall back to rendering with lines for "thin"
> objects. Oddly though, thin-draw appears to work!

Ok, it wasn't that.. the objects attached to the cursor were drawn after
the main screen contents, and there was no call to ghid_flush_triangles
after that point in the expose handler.

You can fix it quite easily. gui-output-events.c, in the
ghid_port_drawing_area_expose_event_cb function, after:


  ghid_show_crosshair (TRUE);

ADD:

  ghid_flush_triangles ();


Actually, this still produces mixed up colours a little.. you might like
to add:

  ghid_flush_triangles ();

Before the call to:

  glColor3f (cross_color.red / 65535.,
             cross_color.green / 65535.,
             cross_color.blue / 65535.);

in the ghid_show_crosshair function. (In the same file).


-- 
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-dev mailing list
[email protected]
http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev

Reply via email to