summaryrefslogtreecommitdiff
path: root/src/Fl_Input_.cxx
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2016-03-31 15:57:35 +0000
committerManolo Gouy <Manolo>2016-03-31 15:57:35 +0000
commitff83e355b09f07848257d8fef7a12705347955cc (patch)
treecb5d6ad4400036aad5f5b7c779cc3d241ccdceb3 /src/Fl_Input_.cxx
parent56e145a1c8cafea814f03cec951bde2753d234f5 (diff)
Begin to remove platform-dependent code from Fl_Input_.cxx
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11485 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Input_.cxx')
-rw-r--r--src/Fl_Input_.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/Fl_Input_.cxx b/src/Fl_Input_.cxx
index 2230a0c7b..e17cfb597 100644
--- a/src/Fl_Input_.cxx
+++ b/src/Fl_Input_.cxx
@@ -19,6 +19,7 @@
#include <FL/Fl.H>
#include <FL/Fl_Input_.H>
#include <FL/Fl_Window.H>
+#include <FL/Fl_Screen_Driver.H>
#include <FL/fl_draw.H>
#include <FL/fl_ask.H>
#include <math.h>
@@ -35,11 +36,6 @@
#define MAXBUF 1024
-#if defined(USE_X11) && !USE_XFT
-const int secret_char = '*'; // asterisk to hide secret input
-#else
-const int secret_char = 0x2022; // bullet to hide secret input
-#endif
static int l_secret;
extern void fl_draw(const char*, int, float, float);
@@ -72,7 +68,7 @@ const char* Fl_Input_::expand(const char* p, char* buf) const {
if (input_type()==FL_SECRET_INPUT) {
while (o<e && p < value_+size_) {
if (fl_utf8len((char)p[0]) >= 1) {
- l_secret = fl_utf8encode(secret_char, o);
+ l_secret = fl_utf8encode(Fl_Screen_Driver::secret_input_character, o);
o += l_secret;
}
p++;