|
|
On 1/1/22 12:20 AM Greg Ercolano wrote:
On 12/31/21 2:59 PM, Greg Ercolano
wrote:
On 12/31/21 2:21 PM, Albrecht Schlosser wrote:
I don't know how the coordinate systems are (or should be)
translated, but if I change only your two drawing code lines
to
cairo_move_to(cr, 0.0, 0.0); cairo_line_to(cr, 1.0, 1.0); // draw diagonal "\" cairo_move_to(cr, 0.0, 1.0); cairo_line_to(cr, 1.0, 0.0); // draw diagonal "/"
the "green X" works for me.
Thanks, I get that too.
Though still not sure how to achieve FLTK drawing
coordinates.
So the solution is just leave the scale alone and use 1.0 for
line width.
The default *is* FLTK space, not normalized cairo space, lol.
Yep, found that too.
Greetings from 2022 (Jan 1, 0:25 am) back to 2021 ;-)
Happy new year to all !
--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/50481ca1-f1e2-009c-58e9-40849d3a44b1%40online.de.
[ Direct Link to Message ] | |
|
| |