diff options
author | Andrew Timmins <atimmins@blueyonder.co.uk> | 2004-07-18 22:21:32 +0000 |
---|---|---|
committer | Andrew Timmins <atimmins@blueyonder.co.uk> | 2004-07-18 22:21:32 +0000 |
commit | 86f60c4c0a6c4577536c797760fa12f097fd31c9 (patch) | |
tree | 3bf07c348b854be07c0cdf715af21d2a2ae7bbe6 /riscos/theme.c | |
parent | 58e2d033ece8c60f495ddba9a93ecab793a7a50f (diff) | |
download | netsurf-86f60c4c0a6c4577536c797760fa12f097fd31c9.tar.gz netsurf-86f60c4c0a6c4577536c797760fa12f097fd31c9.tar.bz2 |
[project @ 2004-07-18 22:21:32 by atimmins]
svn path=/import/netsurf/; revision=1097
Diffstat (limited to 'riscos/theme.c')
-rw-r--r-- | riscos/theme.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/riscos/theme.c b/riscos/theme.c index fca63da51..637aa8f52 100644 --- a/riscos/theme.c +++ b/riscos/theme.c @@ -5,6 +5,7 @@ * Copyright 2003 Phil Mellor <monkeyson@users.sourceforge.net> * Copyright 2003 James Bursa <bursa@users.sourceforge.net> * Copyright 2004 Richard Wilson <not_ginger_matt@users.sourceforge.net> + * Copyright 2004 Andrew Timmins <atimmins@blueyonder.co.uk> */ /** \file @@ -52,6 +53,7 @@ void ro_theme_load(char *pathname) { os_coord dimensions; int size, i, n; char *filename = alloca(strlen(pathname) + 16); + char *kioskfilename = alloca(strlen(pathname) + 16); fileswitch_object_type obj_type; /* Release previous sprite are @@ -70,6 +72,17 @@ void ro_theme_load(char *pathname) { sprintf(filename, "%s.Sprites", pathname); xosfile_read_no_path(filename, &obj_type, 0, 0, &size, 0); + /* Load the window furniture if using Kiosk Themes + * + * Yes I know this is one serious hack! + * I'll do something a little more "realistic" when I've + * finished various other bits... Right now it works. + */ +#ifdef WITH_KIOSK_THEMES + sprintf(kioskfilename, "%s.!SetTheme", pathname); + xos_cli(kioskfilename); + +#endif /* Claim memory for a sprite file if we have one */ if (obj_type & fileswitch_IS_FILE) theme_sprite_area = malloc(size + 16); @@ -113,7 +126,6 @@ void ro_theme_load(char *pathname) { } } } - } |