diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2014-10-18 17:56:45 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2014-10-18 17:56:45 +0100 |
commit | 2f67de688966b09136f1964f0317d29daa1cde92 (patch) | |
tree | 319fb860f91536f073b67cb614ad1bfc2802d7c3 /riscos/window.c | |
parent | b727c31de7c4e70d250e140040ea7fc27e0e0e7f (diff) | |
download | netsurf-2f67de688966b09136f1964f0317d29daa1cde92.tar.gz netsurf-2f67de688966b09136f1964f0317d29daa1cde92.tar.bz2 |
It's silly to pass private core data around the front end, then fish out the frond then data from there, so don't.
Diffstat (limited to 'riscos/window.c')
-rw-r--r-- | riscos/window.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/riscos/window.c b/riscos/window.c index 125d54ce8..123b32322 100644 --- a/riscos/window.c +++ b/riscos/window.c @@ -2957,7 +2957,7 @@ bool ro_gui_window_menu_select(wimp_w w, wimp_i i, wimp_menu *menu, break; case BROWSER_SAVE_VIEW: if (bw != NULL) { - ro_gui_window_default_options(bw); + ro_gui_window_default_options(g); ro_gui_save_options(); } break; @@ -4534,16 +4534,12 @@ void ro_gui_window_clone_options( * \param bw the browser window to read options from */ -void ro_gui_window_default_options(struct browser_window *bw) +void ro_gui_window_default_options(struct gui_window *gui) { struct gui_window *gui; - assert(bw); - - /* Get our GUI - */ - gui = bw->window; - if (!gui) return; + if (gui == NULL) + return; /* Save the basic options */ |