Browse Source

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
pull/49/head
Manolo Gouy 15 years ago
parent
commit
3578d1d6f8
  1. 4
      src/Fl_Text_Display.cxx

4
src/Fl_Text_Display.cxx

@ -1965,12 +1965,12 @@ void Fl_Text_Display::draw_string(int style,
if (!(style & BG_ONLY_MASK)) { if (!(style & BG_ONLY_MASK)) {
fl_color( foreground ); fl_color( foreground );
fl_font( font, fsize ); 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 // makes sure antialiased ÄÖÜ do not leak on line above
fl_push_clip(X, Y, toX - X, mMaxsize); fl_push_clip(X, Y, toX - X, mMaxsize);
#endif #endif
fl_draw( string, nChars, X, Y + mMaxsize - fl_descent()); fl_draw( string, nChars, X, Y + mMaxsize - fl_descent());
#if !(defined(__APPLE__) || defined(WIN32)) #if !(defined(__APPLE__) || defined(WIN32)) && USE_XFT
fl_pop_clip(); fl_pop_clip();
#endif #endif
} }

Loading…
Cancel
Save