diff options
author | Vincent Sanders <vince@netsurf-browser.org> | 2011-03-01 14:31:54 +0000 |
---|---|---|
committer | Vincent Sanders <vince@netsurf-browser.org> | 2011-03-01 14:31:54 +0000 |
commit | 9660442e927c472cce96e6497e72e35b920e475b (patch) | |
tree | ce25ea31ec0c60818687c7fc8b3947be30d5606b /riscos | |
parent | f1343377ffbb6098f665152e8f1b97287bc9c012 (diff) | |
download | netsurf-9660442e927c472cce96e6497e72e35b920e475b.tar.gz netsurf-9660442e927c472cce96e6497e72e35b920e475b.tar.bz2 |
remove obsolete, unused gui_window_redraw API
svn path=/trunk/netsurf/; revision=11870
Diffstat (limited to 'riscos')
-rw-r--r-- | riscos/window.c | 37 |
1 files changed, 9 insertions, 28 deletions
diff --git a/riscos/window.c b/riscos/window.c index 3f07e793d..752859eb0 100644 --- a/riscos/window.c +++ b/riscos/window.c @@ -716,31 +716,6 @@ void gui_window_set_title(struct gui_window *g, const char *title) /** - * Force a redraw of part of the contents of a browser window. - * - * \param g gui_window to redraw - * \param x0 rectangle to redraw - * \param y0 rectangle to redraw - * \param x1 rectangle to redraw - * \param y1 rectangle to redraw - */ - -void gui_window_redraw(struct gui_window *g, int x0, int y0, int x1, int y1) -{ - os_error *error; - - assert(g); - - error = xwimp_force_redraw(g->window, x0 * 2, -y1 * 2, x1 * 2, -y0 * 2); - if (error) { - LOG(("xwimp_force_redraw: 0x%x: %s", - error->errnum, error->errmess)); - warn_user("WimpError", error->errmess); - } -} - - -/** * Force a redraw of the entire contents of a browser window. * * \param g gui_window to redraw @@ -3444,9 +3419,15 @@ bool ro_gui_window_dataload(struct gui_window *g, wimp_message *message) /* Redraw box. */ box_coords(file_box, &pos.x, &pos.y); - gui_window_redraw(bw->window, pos.x, pos.y, - pos.x + file_box->width, - pos.y + file_box->height); + + error = xwimp_force_redraw(bw->window->window, + pos.x * 2, -(pos.y + file_box->height) * 2, + (pos.x + file_box->width) * 2, -pos.y * 2); + if (error) { + LOG(("xwimp_force_redraw: 0x%x: %s", + error->errnum, error->errmess)); + warn_user("WimpError", error->errmess); + } } else { const char *filename = message->data.data_xfer.file_name; |