From 15b8e2eb87c9f902471e9917bbd409783e6de238 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Fri, 13 Feb 2015 09:54:52 +0000 Subject: Removed redundant code. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10575 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/fl_rect.cxx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src') diff --git a/src/fl_rect.cxx b/src/fl_rect.cxx index bfcf1262a..f7a49cb7c 100644 --- a/src/fl_rect.cxx +++ b/src/fl_rect.cxx @@ -548,19 +548,13 @@ void Fl_Graphics_Driver::restore_clip() { #elif defined(WIN32) SelectClipRgn(fl_gc, r); //if r is NULL, clip is automatically cleared #elif defined(__APPLE_QUARTZ__) - if ( fl_window ) { // clipping for a true window + if ( fl_window || fl_gc ) { // clipping for a true window or an offscreen buffer Fl_X::q_clear_clipping(); Fl_X::q_fill_context();//flip coords if bitmap context //apply program clip if (r) { CGContextClipToRects(fl_gc, r->rects, r->count); } - } else if (fl_gc) { // clipping for an offscreen drawing world (CGBitmap) - Fl_X::q_clear_clipping(); - Fl_X::q_fill_context(); - if (r) { - CGContextClipToRects(fl_gc, r->rects, r->count); - } } #else # error unsupported platform -- cgit v1.2.3