I will have a look at it this weekend.
 
w.r.t. drawing the dots: I started off drawing lots of little circles,
but this was too slow. My next idea was as you said, small line
segments, which are almost citrcular.
Then I found some code to do fast grid drawing. It boils down to
drawing a line with a dot at every node, with an invisible line. This
was considerably faster.
 
Erik.


>>> Tim Edwards <t...@opencircuitdesign.com> 3-4-2015 1:13 >>>
Hello Philip,

> I just compiled version 3.9 revision 37 on Debian 7 (wheezy).  It
> kinda shocked me seeing the pretty cairo rendering in the edit
> window!  Looks good!  Thanks Erik
>
> Anyway.  My question has to do with the grid dots.  Up till this
> install, the dot spacing has always match the stap-to spacing so I
> have a visual indication as I'm editing where points are allowed.
> That seems to be missing.  I have the grid showing, but don't see
> any dots.  Snapping still works - I just can't tell by looking if
> an existing object is "on grid" or not - or where my next point
> will snap.
>
> Am I missing a setting?  Or did I maybe miss some issue during
> compile?  Maybe is this part of cairo?  Or did I find a bug?

Hmm, I'm not sure.  I have no problem seeing the snap spacing dots.
I wonder if it's a video card implementation of a point, or what its
decision is about something that is smaller than a single unit.  The
code is in cairo.c, lines 769 and following.  You can play around with
the values there and see if it makes any difference.  Check the values
of "xbegin", "ybegin", and "spc2" to make sure that the dots aren't
being rendered off-screen for some reason.  then try setting the line
width and/or the offset (apparently Cairo doesn't even know how to
draw a dot, because it's implemented as a short diagonal line, but so
short it's effectively a circle).

I know there's a bug in the Cairo version that I've admittedly been
too lazy to track down and fix, which is that there is no automatic
refresh of the screen in response to a snap spacing adjustment
(+/- keys).  But your problem sounds much more fundamental than that.

What video hardware do you have, by the way, and what driver?

---Tim

+--------------------------------+-------------------------------------+
| R. Timothy Edwards (Tim)       | email: t...@opencircuitdesign.com   
|
| Open Circuit Design            | web:   http://opencircuitdesign.com
|
| 22815 Timber Creek Lane        | phone: (301) 528-5030              
|
| Clarksburg, MD 20871-4001      | cell:  (240) 401-0616              
|
+--------------------------------+-------------------------------------+
_______________________________________________
Xcircuit-dev mailing list
Xcircuit-dev@opencircuitdesign.com
http://www.opencircuitdesign.com/mailman/listinfo/xcircuit-dev
_______________________________________________
Xcircuit-dev mailing list
Xcircuit-dev@opencircuitdesign.com
http://www.opencircuitdesign.com/mailman/listinfo/xcircuit-dev

Reply via email to