From 6c2274f011b7fafa346626913e2c440b22f16a24 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Sat, 19 Jun 2010 15:19:13 +0000 Subject: fl_begin_offscreen/fl_end_offscreen: added fl_push_noclip/fl_pop_clip to render Mac consistent with other platforms git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7651 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Double_Window.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/Fl_Double_Window.cxx b/src/Fl_Double_Window.cxx index 8d9acb65f..9c5e210b4 100644 --- a/src/Fl_Double_Window.cxx +++ b/src/Fl_Double_Window.cxx @@ -231,14 +231,13 @@ void fl_begin_offscreen(Fl_Offscreen ctx) { fl_gc = (CGContextRef)ctx; fl_window = 0; - //fl_push_no_clip(); CGContextSaveGState(fl_gc); - Fl_X::q_fill_context(); + fl_push_no_clip(); } void fl_end_offscreen() { Fl_X::q_release_context(); - //fl_pop_clip(); + fl_pop_clip(); if (stack_ix>0) stack_ix--; else -- cgit v1.2.3