Author: manolo
Date: 2010-11-30 09:56:23 -0800 (Tue, 30 Nov 2010)
New Revision: 7927
Log:
Fixes STR #2456: adds, for X11, clipping around text to prevent leaking on line
above.
Modified:
branches/branch-1.3/src/Fl_Text_Display.cxx
Modified: branches/branch-1.3/src/Fl_Text_Display.cxx
===================================================================
--- branches/branch-1.3/src/Fl_Text_Display.cxx 2010-11-30 17:02:11 UTC (rev
7926)
+++ branches/branch-1.3/src/Fl_Text_Display.cxx 2010-11-30 17:56:23 UTC (rev
7927)
@@ -1969,7 +1969,14 @@
if (!(style & BG_ONLY_MASK)) {
fl_color( foreground );
fl_font( font, fsize );
+#if !(defined(__APPLE__) || defined(WIN32))
+ // makes sure antialiased ÄÖÜ do not leak on line above
+ fl_push_clip(X, Y, toX - X, mMaxsize);
+#endif
fl_draw( string, nChars, X, Y + mMaxsize - fl_descent());
+#if !(defined(__APPLE__) || defined(WIN32))
+ fl_pop_clip();
+#endif
}
// CET - FIXME
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit