diff options
Diffstat (limited to 'framebuffer')
-rw-r--r-- | framebuffer/gui.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/framebuffer/gui.c b/framebuffer/gui.c index 644a917e0..1ca66f5b6 100644 --- a/framebuffer/gui.c +++ b/framebuffer/gui.c @@ -1320,16 +1320,14 @@ gui_window_redraw_window(struct gui_window *g) } void -gui_window_update_box(struct gui_window *g, const union content_msg_data *data) +gui_window_update_box(struct gui_window *g, const struct rect *rect) { struct browser_widget_s *bwidget = fbtk_get_userpw(g->browser); fb_queue_redraw(g->browser, - data->redraw.x - bwidget->scrollx, - data->redraw.y - bwidget->scrolly, - data->redraw.x - bwidget->scrollx + - data->redraw.width, - data->redraw.y - bwidget->scrolly + - data->redraw.height); + rect->x0 - bwidget->scrollx, + rect->y0 - bwidget->scrolly, + rect->x1 - bwidget->scrollx, + rect->y1 - bwidget->scrolly); } bool |