STR 2771 fix cont'd used the new api in scheme(const char*)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9369 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
56a184d529
commit
1b01c3a94c
@ -290,9 +290,9 @@ int Fl::scheme(const char *s) {
|
||||
}
|
||||
|
||||
if (s) {
|
||||
if (!strcasecmp(s, "none") || !strcasecmp(s, "base") || !*s) s = 0;
|
||||
else if (!strcasecmp(s, "gtk+")) s = strdup("gtk+");
|
||||
else if (!strcasecmp(s, "plastic")) s = strdup("plastic");
|
||||
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 s = 0;
|
||||
}
|
||||
if (scheme_) free((void*)scheme_);
|
||||
|
Loading…
Reference in New Issue
Block a user