summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2002-04-16 17:11:11 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2002-04-16 17:11:11 +0000
commitc2521c01daed96a17d686e667a6e514cf86cf2dc (patch)
treecfb9afd292d85b9a6bb020551c1b2e164c6fccfa /src
parent8964212393ac89326d39e6f69a1d309b71c6792c (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/Fl_Input_.cxx11
1 files changed, 8 insertions, 3 deletions
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 $".
//