STR #2330: offscreen bitmap cliping was flipped in OS X

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7358 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Matthias Melcher 2010-03-29 14:37:02 +00:00
parent 024368d722
commit 4f1722eb55
2 changed files with 4 additions and 3 deletions

View File

@ -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

View File

@ -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