From 329f84671efd278d548900d977f307057174e9c8 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Thu, 26 Aug 2004 06:18:12 +0000 Subject: Mac Quartz: - attempt at making the clipping work well - improved drawing (still many 1-off bugs) - 'arc' test seems to run well - beware! the Quartz version is pretty unstable at this point git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3785 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_mac.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/Fl_mac.cxx') diff --git a/src/Fl_mac.cxx b/src/Fl_mac.cxx index f11706bbd..e6b088ec0 100644 --- a/src/Fl_mac.cxx +++ b/src/Fl_mac.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_mac.cxx,v 1.1.2.58 2004/08/26 00:18:42 matthiaswm Exp $" +// "$Id: Fl_mac.cxx,v 1.1.2.59 2004/08/26 06:18:12 matthiaswm Exp $" // // MacOS specific code for the Fast Light Tool Kit (FLTK). // @@ -1863,10 +1863,10 @@ void Fl_Window::make_current() if (!i->gc) { //CreateCGContextForPort(GetWindowPort(i->xid), &i->gc); QDBeginCGContext(GetWindowPort(i->xid), &i->gc); - // set clipping region - //ClipCGContextToRegion (i->gc, &portRect, fl_window_region ); + // save the unclipped state for later + CGContextSaveGState(i->gc); // translate coordinate system to coorespond with fltk's. - CGContextTranslateCTM(i->gc, -0.5f, port_height+0.5f); + CGContextTranslateCTM(i->gc, 0.5f, port_height-0.5f); CGContextScaleCTM(i->gc, 1.0f, -1.0f); static CGAffineTransform font_mx = { 1, 0, 0, -1, 0, 0 }; CGContextSetTextMatrix(i->gc, font_mx); @@ -1948,6 +1948,6 @@ void Fl::paste(Fl_Widget &receiver, int clipboard) { // -// End of "$Id: Fl_mac.cxx,v 1.1.2.58 2004/08/26 00:18:42 matthiaswm Exp $". +// End of "$Id: Fl_mac.cxx,v 1.1.2.59 2004/08/26 06:18:12 matthiaswm Exp $". // -- cgit v1.2.3