summaryrefslogtreecommitdiff
path: root/src/Fl_get_system_colors.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Fl_get_system_colors.cxx')
-rw-r--r--src/Fl_get_system_colors.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Fl_get_system_colors.cxx b/src/Fl_get_system_colors.cxx
index e1b7fc2f4..73388c835 100644
--- a/src/Fl_get_system_colors.cxx
+++ b/src/Fl_get_system_colors.cxx
@@ -21,6 +21,7 @@
#include <FL/platform.H>
#include <FL/math.h>
#include <FL/fl_utf8.h>
+#include <FL/fl_string.h>
#include "flstring.h"
#include <stdio.h>
#include <stdlib.h>
@@ -163,9 +164,9 @@ int Fl::scheme(const char *s) {
if (s) {
if (!fl_ascii_strcasecmp(s, "none") || !fl_ascii_strcasecmp(s, "base") || !*s) s = 0;
- else if (!fl_ascii_strcasecmp(s, "gtk+")) s = strdup("gtk+");
- else if (!fl_ascii_strcasecmp(s, "plastic")) s = strdup("plastic");
- else if (!fl_ascii_strcasecmp(s, "gleam")) s = strdup("gleam");
+ else if (!fl_ascii_strcasecmp(s, "gtk+")) s = fl_strdup("gtk+");
+ else if (!fl_ascii_strcasecmp(s, "plastic")) s = fl_strdup("plastic");
+ else if (!fl_ascii_strcasecmp(s, "gleam")) s = fl_strdup("gleam");
else s = 0;
}
if (scheme_) free((void*)scheme_);