diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2004-08-26 06:18:12 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2004-08-26 06:18:12 +0000 |
| commit | 329f84671efd278d548900d977f307057174e9c8 (patch) | |
| tree | e78f6dc48346615b1d4e1f16b22c64d5bfceea81 /src/Fl_mac.cxx | |
| parent | 25fe8425db613e4eaeff7898e803dd0f68fe57a5 (diff) | |
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
Diffstat (limited to 'src/Fl_mac.cxx')
| -rw-r--r-- | src/Fl_mac.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
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 $". // |
