diff options
| author | Manolo Gouy <Manolo> | 2015-02-13 09:54:52 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2015-02-13 09:54:52 +0000 |
| commit | 15b8e2eb87c9f902471e9917bbd409783e6de238 (patch) | |
| tree | a121e69449c10bba87663df81258ae93eb231690 | |
| parent | 2633a887b75a55cb714fbb31f4f171321601130a (diff) | |
Removed redundant code.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10575 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
| -rw-r--r-- | src/fl_rect.cxx | 8 |
1 files changed, 1 insertions, 7 deletions
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 |
