From db41dc3dac1528afbc369de91a28d1ebd4cf028b Mon Sep 17 00:00:00 2001 From: Richard Wilson Date: Mon, 7 Feb 2005 14:28:43 +0000 Subject: [project @ 2005-02-07 14:28:43 by rjw] Initial work for global history (currently incomplete) svn path=/import/netsurf/; revision=1497 --- riscos/history.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'riscos/history.c') diff --git a/riscos/history.c b/riscos/history.c index ebd4e7def..31595470b 100644 --- a/riscos/history.c +++ b/riscos/history.c @@ -283,10 +283,12 @@ void ro_gui_history_mode_change(void) /** * Open history window. + * + * \param pointer whether to open the window at the pointer */ void ro_gui_history_open(struct browser_window *bw, - struct history *history, int wx, int wy) + struct history *history, bool pointer) { bool done = false; unsigned int i, j, max_y = 0; @@ -353,12 +355,13 @@ void ro_gui_history_open(struct browser_window *bw, wimp_set_extent(history_window, &box); state.w = history_window; wimp_get_window_state(&state); - state.visible.x0 = wx - width / 2; - state.visible.y0 = wy - height / 2; - state.visible.x1 = wx + width / 2; - state.visible.y1 = wy + height / 2; - state.next = wimp_TOP; + state.visible.x0 = 0; + state.visible.y0 = 0; + state.visible.x1 = width; + state.visible.y1 = height; + state.next = wimp_HIDDEN; wimp_open_window((wimp_open *) &state); + ro_gui_dialog_open_persistant(bw->window->window, history_window, pointer); } -- cgit v1.2.3