summaryrefslogtreecommitdiff
path: root/src/Fl_get_system_colors.cxx
diff options
context:
space:
mode:
authorerco77 <erco@seriss.com>2020-08-01 14:35:44 -0700
committerGitHub <noreply@github.com>2020-08-01 14:35:44 -0700
commit7abc09ad89b4c3d0c17ee8dc9d02ccd261cd13f2 (patch)
tree72e461bac5930f8a319d48a6ea99ba793dd35a8b /src/Fl_get_system_colors.cxx
parent7514a73ba759f7fc9965eeef3b92ece899bd7a69 (diff)
parente9688822ec68f066f425953278a853e049b93dfb (diff)
Merge pull request #116 from erco77/fl_strdup
fl_strdup() implemented + deployed
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_);