About STR #2456: clipping added to solve STR now requires USE_XFT.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7939 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy 2010-12-02 13:01:44 +00:00
parent b4299c2387
commit 3578d1d6f8

View File

@ -1965,12 +1965,12 @@ void Fl_Text_Display::draw_string(int style,
if (!(style & BG_ONLY_MASK)) {
fl_color( foreground );
fl_font( font, fsize );
#if !(defined(__APPLE__) || defined(WIN32))
#if !(defined(__APPLE__) || defined(WIN32)) && USE_XFT
// 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))
#if !(defined(__APPLE__) || defined(WIN32)) && USE_XFT
fl_pop_clip();
#endif
}