summaryrefslogtreecommitdiff
path: root/src/drivers/WinAPI
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/WinAPI')
-rw-r--r--src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.H1
-rw-r--r--src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx25
2 files changed, 0 insertions, 26 deletions
diff --git a/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.H b/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.H
index 628fc9511..e28fb791a 100644
--- a/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.H
+++ b/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.H
@@ -70,7 +70,6 @@ public:
virtual int ready();
virtual void grab(Fl_Window* win);
// --- global colors
- virtual int parse_color(const char* p, uchar& r, uchar& g, uchar& b);
virtual void get_system_colors();
virtual const char *get_system_scheme();
// --- global timers
diff --git a/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx b/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx
index d4fed5922..03aa93ecf 100644
--- a/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx
+++ b/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx
@@ -299,31 +299,6 @@ void Fl_WinAPI_Screen_Driver::grab(Fl_Window* win)
}
-// simulation of XParseColor:
-int Fl_WinAPI_Screen_Driver::parse_color(const char* p, uchar& r, uchar& g, uchar& b)
-{
- if (*p == '#') p++;
- size_t n = strlen(p);
- size_t m = n/3;
- const char *pattern = 0;
- switch(m) {
- case 1: pattern = "%1x%1x%1x"; break;
- case 2: pattern = "%2x%2x%2x"; break;
- case 3: pattern = "%3x%3x%3x"; break;
- case 4: pattern = "%4x%4x%4x"; break;
- default: return 0;
- }
- int R,G,B; if (sscanf(p,pattern,&R,&G,&B) != 3) return 0;
- switch(m) {
- case 1: R *= 0x11; G *= 0x11; B *= 0x11; break;
- case 3: R >>= 4; G >>= 4; B >>= 4; break;
- case 4: R >>= 8; G >>= 8; B >>= 8; break;
- }
- r = (uchar)R; g = (uchar)G; b = (uchar)B;
- return 1;
-}
-
-
static void set_selection_color(uchar r, uchar g, uchar b)
{
Fl::set_color(FL_SELECTION_COLOR,r,g,b);