From c29b4b5e16e87199846a0f97bc3bd2d80b6c0c07 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Thu, 26 Aug 2004 22:24:24 +0000 Subject: FLTK1.1 Quartz support: - added a 'test/unittests' which wil check for identical drawing on all platforms. This was desperatly needed to fix tremendous problems in getting the Quartz drawing routines right - disabled anti-aliasing for functions that draw straight lines at integer coordinates git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3788 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_mac.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/Fl_mac.cxx') diff --git a/src/Fl_mac.cxx b/src/Fl_mac.cxx index e6b088ec0..c70a649f8 100644 --- a/src/Fl_mac.cxx +++ b/src/Fl_mac.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_mac.cxx,v 1.1.2.59 2004/08/26 06:18:12 matthiaswm Exp $" +// "$Id: Fl_mac.cxx,v 1.1.2.60 2004/08/26 22:24:23 matthiaswm Exp $" // // MacOS specific code for the Fast Light Tool Kit (FLTK). // @@ -1863,6 +1863,8 @@ void Fl_Window::make_current() if (!i->gc) { //CreateCGContextForPort(GetWindowPort(i->xid), &i->gc); QDBeginCGContext(GetWindowPort(i->xid), &i->gc); +#warning : line capping should not be set. Check AA settings to make this work + CGContextSetLineCap(i->gc, kCGLineCapSquare); // save the unclipped state for later CGContextSaveGState(i->gc); // translate coordinate system to coorespond with fltk's. @@ -1948,6 +1950,6 @@ void Fl::paste(Fl_Widget &receiver, int clipboard) { // -// End of "$Id: Fl_mac.cxx,v 1.1.2.59 2004/08/26 06:18:12 matthiaswm Exp $". +// End of "$Id: Fl_mac.cxx,v 1.1.2.60 2004/08/26 22:24:23 matthiaswm Exp $". // -- cgit v1.2.3