summaryrefslogtreecommitdiff
path: root/riscos/theme.c
diff options
context:
space:
mode:
authorRichard Wilson <rjw@netsurf-browser.org>2005-05-17 23:46:36 +0000
committerRichard Wilson <rjw@netsurf-browser.org>2005-05-17 23:46:36 +0000
commitd8608af81238608f800b489d5e8754b7b5bb7fca (patch)
tree4b183dc31928c5a842bbaf636de154f60d15254f /riscos/theme.c
parent970248430612170d9446d2c06f69af63e31d4861 (diff)
downloadnetsurf-d8608af81238608f800b489d5e8754b7b5bb7fca.tar.gz
netsurf-d8608af81238608f800b489d5e8754b7b5bb7fca.tar.bz2
[project @ 2005-05-17 23:46:36 by rjw]
Make long theme names work on old filesystems. svn path=/import/netsurf/; revision=1726
Diffstat (limited to 'riscos/theme.c')
-rw-r--r--riscos/theme.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/riscos/theme.c b/riscos/theme.c
index 7b34641be..aab6785d5 100644
--- a/riscos/theme.c
+++ b/riscos/theme.c
@@ -146,6 +146,11 @@ struct theme_descriptor *ro_gui_theme_find(const char *leafname) {
descriptor = descriptor->next)
if (!strcmp(leafname, descriptor->leafname))
return descriptor;
+ /* fallback for 10 chars on old filesystems */
+ for (descriptor = theme_descriptors; descriptor;
+ descriptor = descriptor->next)
+ if (!strncmp(leafname, descriptor->leafname, 10))
+ return descriptor;
return NULL;
}