From c2521c01daed96a17d686e667a6e514cf86cf2dc Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Tue, 16 Apr 2002 17:11:11 +0000 Subject: Bump version info to 1.1.0rc1. Force full redraw in Fl_Input when using Xft or OSX anti-aliased text. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2094 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Input_.cxx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/Fl_Input_.cxx b/src/Fl_Input_.cxx index 645990c28..ac1e8b245 100644 --- a/src/Fl_Input_.cxx +++ b/src/Fl_Input_.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Input_.cxx,v 1.21.2.11.2.10 2002/04/11 11:52:41 easysw Exp $" +// "$Id: Fl_Input_.cxx,v 1.21.2.11.2.11 2002/04/16 17:11:11 easysw Exp $" // // Common input widget routines for the Fast Light Tool Kit (FLTK). // @@ -145,8 +145,13 @@ void Fl_Input_::minimal_update(int p) { } else { mu_p = p; } + +#if defined(__APPLE__) || USE_XFT + redraw(); +#else damage(FL_DAMAGE_EXPOSE); erase_cursor_only = 0; +#endif // __APPLE__ || USE_XFT } void Fl_Input_::minimal_update(int p, int q) { @@ -164,8 +169,8 @@ void Fl_Input_::setfont() const { } void Fl_Input_::drawtext(int X, int Y, int W, int H) { - int do_mu = !(damage()&FL_DAMAGE_ALL); + if (Fl::focus()!=this && !size()) { if (do_mu) { // we have to erase it if cursor was there fl_color(color()); @@ -864,5 +869,5 @@ Fl_Input_::~Fl_Input_() { } // -// End of "$Id: Fl_Input_.cxx,v 1.21.2.11.2.10 2002/04/11 11:52:41 easysw Exp $". +// End of "$Id: Fl_Input_.cxx,v 1.21.2.11.2.11 2002/04/16 17:11:11 easysw Exp $". // -- cgit v1.2.3