summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2010-03-29 14:37:02 +0000
committerMatthias Melcher <fltk@matthiasm.com>2010-03-29 14:37:02 +0000
commit4f1722eb55c69a36555187e9bc0ed214630366d3 (patch)
tree1e98b5631650b8d5e9021da83e5699f9caf3e99a /src
parent024368d7226e403d535184faa9f6e9b66f8d56e4 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/fl_rect.cxx6
1 files changed, 3 insertions, 3 deletions
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