mirror of
https://github.com/fltk/fltk.git
synced 2026-05-20 12:41:27 +08:00
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:
+1
-7
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user