On Mon, Mar 19, 2012 at 2:57 PM, Ian MacArthur <[email protected]> wrote: >>> >>> What have I done wrong? Presumably I've cocked up the build somewhere, >>> but... >>> >>> Suggestions? >>> >>> Cheers, >>> -- >>> Ian >> >> First off, you need to checkout the 'cairo-device' branch: >> >> git checkout cairo-device > > Ah, got it. Yup, that works. Hmm, see what you mean, there's a few weird > things going on in there still, but it does work remarkably well. We'd need > to do something to clean up some of the artefacts that I'm seeing, but for > the large part that is very successful... > > Much congratulations...
I've got changes, which I haven't pushed yet, which clean up some of the alignment and greatly improve the clipping behavior. Also, I've added fl_push_use_cairo( bool ) and fl_pop_use_cairo() so that the application can decide when/how much to rely on Cairo for rendering at runtime... I've done this mainly because, despite spending many hours of trial and error, I cannot seem to get Cairo to reliably draw 1px thick lines at integer coordinates (even using the device space translations and the 0.5 offset trick). Sometimes the lines are 1px, sometimes they are 2px, and this results in lots of little drawing errors. However, I have yet to figure out the problem with child windows. Other windows don't seem to cause a problem on expose, but child windows of the program result in large areas of the underlying window being cleared but not redrawn. _______________________________________________ fltk-dev mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-dev
