diff options
| author | Manolo Gouy <Manolo> | 2010-11-30 17:56:23 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2010-11-30 17:56:23 +0000 |
| commit | 0d6177412a55f980fa774299ad8de03f5f816337 (patch) | |
| tree | 4ce583fe841b19306bc79df7675474e737b4da14 /src | |
| parent | ddf187af37e498e7a931e031a9e34b9ee58c7b8b (diff) | |
Fixes STR #2456: adds, for X11, clipping around text to prevent leaking on line above.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7927 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_Text_Display.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Fl_Text_Display.cxx b/src/Fl_Text_Display.cxx index 588538071..d8c4aa9cd 100644 --- a/src/Fl_Text_Display.cxx +++ b/src/Fl_Text_Display.cxx @@ -1969,7 +1969,14 @@ 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)) + // 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 |
