diff options
| -rw-r--r-- | CHANGES | 1 | ||||
| -rw-r--r-- | src/fl_rect.cxx | 6 |
2 files changed, 4 insertions, 3 deletions
@@ -1,5 +1,6 @@ CHANGES IN FLTK 1.3.0 + - Fixed clipping for offscreen rendering (OSX, STR #2330) - Added printing support (Fl_Printer class and friends) for native printing on Windows and Mac OS X, PostScript printing on X11 with CUPS or lp, and PostScript file output on all platforms diff --git a/src/fl_rect.cxx b/src/fl_rect.cxx index c0cc1d974..df8cbef9a 100644 --- a/src/fl_rect.cxx +++ b/src/fl_rect.cxx @@ -424,15 +424,15 @@ void fl_restore_clip() { Fl_X::q_clear_clipping(); Fl_X::q_fill_context();//flip coords if bitmap context //apply program clip - if(r) { + 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); - } - Fl_X::q_fill_context(); + } } #else # error unsupported platform |
