diff options
author | Richard Wilson <rjw@netsurf-browser.org> | 2004-07-25 20:45:16 +0000 |
---|---|---|
committer | Richard Wilson <rjw@netsurf-browser.org> | 2004-07-25 20:45:16 +0000 |
commit | de4d15128561f38a45009fccbaac234882216ab3 (patch) | |
tree | cb83b484d5aadbecca479feaa576284f971971c2 /riscos/window.c | |
parent | b02f6fa9a0608187cb85752be81bde90071e8b7e (diff) | |
download | netsurf-de4d15128561f38a45009fccbaac234882216ab3.tar.gz netsurf-de4d15128561f38a45009fccbaac234882216ab3.tar.bz2 |
[project @ 2004-07-25 20:45:15 by rjw]
Support for MNGs and JNGs. Bug fix for help token regression. Minor GUI fixes.
svn path=/import/netsurf/; revision=1144
Diffstat (limited to 'riscos/window.c')
-rw-r--r-- | riscos/window.c | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/riscos/window.c b/riscos/window.c index 06e4d9c0b..0c451934e 100644 --- a/riscos/window.c +++ b/riscos/window.c @@ -245,6 +245,7 @@ struct gui_window *gui_create_browser_window(struct browser_window *bw, */ state.next = wimp_TOP; ro_gui_window_open(g, (wimp_open*)&state); + ro_gui_prepare_navigate(g); /* Set the caret position to the URL bar */ @@ -555,10 +556,19 @@ void gui_window_update_box(struct gui_window *g, (ro_gui_current_redraw_gui->option.buffer_everything)) ro_gui_buffer_close(); error = xwimp_get_rectangle(&update, &more); + if (error) { - LOG(("xwimp_get_rectangle: 0x%x: %s", - error->errnum, error->errmess)); - warn_user("WimpError", error->errmess); + /* RISC OS 3.7 returns the following error is enough buffer + is claimed to cause a new dynamic area to be created. It + doesn't actually stop anything working, so we mask it out + for now until a better fix is found. + */ + if ((!ro_gui_current_redraw_gui->option.buffer_everything) || + (error->errnum != 0x286)) { + LOG(("xwimp_get_rectangle: 0x%x: %s", + error->errnum, error->errmess)); + warn_user("WimpError", error->errmess); + } ro_gui_current_redraw_gui = NULL; return; } @@ -1750,5 +1760,6 @@ void gui_window_set_pointer(gui_pointer_shape shape) void gui_window_new_content(struct gui_window *g) { + ro_gui_prepare_navigate(g); ro_gui_dialog_close_persistant(g->window); } |