From 86f60c4c0a6c4577536c797760fa12f097fd31c9 Mon Sep 17 00:00:00 2001 From: Andrew Timmins Date: Sun, 18 Jul 2004 22:21:32 +0000 Subject: [project @ 2004-07-18 22:21:32 by atimmins] svn path=/import/netsurf/; revision=1097 --- riscos/theme.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'riscos/theme.c') 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 * Copyright 2003 James Bursa * Copyright 2004 Richard Wilson + * Copyright 2004 Andrew Timmins */ /** \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) { } } } - } -- cgit v1.2.3