Author: matt
Date: 2008-02-14 10:17:06 -0800 (Thu, 14 Feb 2008)
New Revision: 6026
Log:
Fixed OS X pixmap offset bug (Thanks to D'Elia Yuri) STR 1856
Modified:
branches/branch-1.1/CHANGES
branches/branch-1.1/src/fl_draw_pixmap.cxx
Modified: branches/branch-1.1/CHANGES
===================================================================
--- branches/branch-1.1/CHANGES 2008-02-04 01:26:46 UTC (rev 6025)
+++ branches/branch-1.1/CHANGES 2008-02-14 18:17:06 UTC (rev 6026)
@@ -6,6 +6,7 @@
STR #1742, STR #1777, STR #1794, STR #1827, STR #1843,
STR #1796, STR #1815, STR #1726, STR #1753, STR #1855,
STR #1862))
+ - Fixed offset bug in OS X pixmap code (STR #1856)
- Fixed potential buffer overrun
in Fl_Preferences (STR #1853)
- Fixed method attributes in consecutive class
Modified: branches/branch-1.1/src/fl_draw_pixmap.cxx
===================================================================
--- branches/branch-1.1/src/fl_draw_pixmap.cxx 2008-02-04 01:26:46 UTC (rev
6025)
+++ branches/branch-1.1/src/fl_draw_pixmap.cxx 2008-02-14 18:17:06 UTC (rev
6026)
@@ -323,10 +323,9 @@
CGColorSpaceRelease(lut);
CGDataProviderRelease(src);
CGRect rect = { { x, y} , { d.w, d.h } };
- Fl_X::q_begin_image(rect, x, y, d.w, d.h);
+ Fl_X::q_begin_image(rect, 0, 0, d.w, d.h);
CGContextDrawImage(fl_gc, rect, img);
Fl_X::q_end_image();
- CGContextFlush(fl_gc);
CGImageRelease(img);
delete array;
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit