diff options
author | Richard Wilson <rjw@netsurf-browser.org> | 2005-03-13 09:04:44 +0000 |
---|---|---|
committer | Richard Wilson <rjw@netsurf-browser.org> | 2005-03-13 09:04:44 +0000 |
commit | 950d8e27a041119009bede022cb5a2502131a94b (patch) | |
tree | e59116a024572ef937933ef36c8f62084353df69 | |
parent | a0875b261f7c14c0ea932c2bd5412b6834989c9b (diff) | |
download | netsurf-950d8e27a041119009bede022cb5a2502131a94b.tar.gz netsurf-950d8e27a041119009bede022cb5a2502131a94b.tar.bz2 |
[project @ 2005-03-13 09:04:44 by rjw]
Update title and extent on scale change.
svn path=/import/netsurf/; revision=1534
-rw-r--r-- | desktop/browser.c | 2 | ||||
-rw-r--r-- | desktop/browser.h | 1 | ||||
-rw-r--r-- | riscos/dialog.c | 2 | ||||
-rw-r--r-- | riscos/window.c | 2 |
4 files changed, 3 insertions, 4 deletions
diff --git a/desktop/browser.c b/desktop/browser.c index 08b277938..259358acd 100644 --- a/desktop/browser.c +++ b/desktop/browser.c @@ -46,8 +46,6 @@ static void browser_window_callback(content_msg msg, struct content *c, static void browser_window_convert_to_download(struct browser_window *bw); static void browser_window_start_throbber(struct browser_window *bw); static void browser_window_stop_throbber(struct browser_window *bw); -static void browser_window_update(struct browser_window *bw, - bool scroll_to_top); static void browser_window_set_status(struct browser_window *bw, const char *text); static void browser_window_set_pointer(gui_pointer_shape shape); diff --git a/desktop/browser.h b/desktop/browser.h index 3562236fe..86764fa3b 100644 --- a/desktop/browser.h +++ b/desktop/browser.h @@ -97,6 +97,7 @@ void browser_window_go_post(struct browser_window *bw, const char *url, void browser_window_stop(struct browser_window *bw); void browser_window_reload(struct browser_window *bw, bool all); void browser_window_destroy(struct browser_window *bw); +void browser_window_update(struct browser_window *bw, bool scroll_to_top); void browser_window_mouse_click(struct browser_window *bw, browser_mouse_click click, int x, int y); diff --git a/riscos/dialog.c b/riscos/dialog.c index 8559c93ab..26f689d12 100644 --- a/riscos/dialog.c +++ b/riscos/dialog.c @@ -1187,7 +1187,7 @@ void ro_gui_dialog_click_zoom(wimp_pointer *pointer) ro_gui_current_zoom_gui->reformat_pending = true; c = ro_gui_current_zoom_gui->bw->current_content; if ((c) && (c->type != CONTENT_HTML)) - gui_window_redraw(ro_gui_current_zoom_gui, 0, 0, 16384, 16384); + browser_window_update(ro_gui_current_zoom_gui->bw, false); gui_reformat_pending = true; } diff --git a/riscos/window.c b/riscos/window.c index 367d770b9..82a041d95 100644 --- a/riscos/window.c +++ b/riscos/window.c @@ -1648,7 +1648,7 @@ bool ro_gui_window_keypress(struct gui_window *g, int key, bool toolbar) if (old_scale != current_gui->option.scale) { current_gui->reformat_pending = true; if ((content) && (content->type != CONTENT_HTML)) - gui_window_redraw(current_gui, 0, 0, 16384, 16384); + browser_window_update(current_gui->bw, false); gui_reformat_pending = true; } return true; |