From 9903df5654c13c69b37b6a6142551c6e6f209f80 Mon Sep 17 00:00:00 2001 From: James Bursa Date: Tue, 24 Jun 2003 23:22:00 +0000 Subject: [project @ 2003-06-24 23:22:00 by bursa] Change cache to use current content sizes. svn path=/import/netsurf/; revision=183 --- riscos/gui.c | 6 +++++- riscos/gui.h | 4 +++- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'riscos') diff --git a/riscos/gui.c b/riscos/gui.c index 8ec03c006..16a9d4eb8 100644 --- a/riscos/gui.c +++ b/riscos/gui.c @@ -1,5 +1,5 @@ /** - * $Id: gui.c,v 1.33 2003/06/17 19:24:21 bursa Exp $ + * $Id: gui.c,v 1.34 2003/06/24 23:22:00 bursa Exp $ */ #include "netsurf/desktop/options.h" @@ -23,6 +23,8 @@ const char *__dynamic_da_name = "NetSurf"; +char *NETSURF_DIR; + int gadget_subtract_x; int gadget_subtract_y; #define browser_menu_flags (wimp_ICON_TEXT | wimp_ICON_FILLED | (wimp_COLOUR_BLACK << wimp_ICON_FG_COLOUR_SHIFT) | (wimp_COLOUR_WHITE << wimp_ICON_BG_COLOUR_SHIFT)) @@ -1109,6 +1111,8 @@ void gui_init(int argc, char** argv) os_error *e; fileswitch_object_type *ot; + NETSURF_DIR = getenv("NetSurf$Dir"); + /* __riscosify_control = __RISCOSIFY_NO_PROCESS; */ task_handle = wimp_initialise(wimp_VERSION_RO38, task_name, (wimp_message_list*) &task_messages, &version); diff --git a/riscos/gui.h b/riscos/gui.h index 4a339f0ad..fbfb9b0e6 100644 --- a/riscos/gui.h +++ b/riscos/gui.h @@ -1,5 +1,5 @@ /** - * $Id: gui.h,v 1.6 2003/04/15 18:07:25 bursa Exp $ + * $Id: gui.h,v 1.7 2003/06/24 23:22:00 bursa Exp $ */ #ifndef _NETSURF_RISCOS_GUI_H_ @@ -7,6 +7,8 @@ #include "oslib/wimp.h" +extern char *NETSURF_DIR; + struct ro_gui_window; typedef struct ro_gui_window gui_window; -- cgit v1.2.3