Author: matt
Date: 2010-03-29 07:37:02 -0700 (Mon, 29 Mar 2010)
New Revision: 7358
Log:
STR #2330: offscreen bitmap cliping was flipped in OS X
Modified:
branches/branch-1.3/CHANGES
branches/branch-1.3/src/fl_rect.cxx
Modified: branches/branch-1.3/CHANGES
===================================================================
--- branches/branch-1.3/CHANGES 2010-03-29 14:10:54 UTC (rev 7357)
+++ branches/branch-1.3/CHANGES 2010-03-29 14:37:02 UTC (rev 7358)
@@ -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
Modified: branches/branch-1.3/src/fl_rect.cxx
===================================================================
--- branches/branch-1.3/src/fl_rect.cxx 2010-03-29 14:10:54 UTC (rev 7357)
+++ branches/branch-1.3/src/fl_rect.cxx 2010-03-29 14:37:02 UTC (rev 7358)
@@ -424,15 +424,15 @@
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
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit