Removed redundant code.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10575 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy
2015-02-13 09:54:52 +00:00
parent 2633a887b7
commit 15b8e2eb87
+1 -7
View File
@@ -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