diff options
Diffstat (limited to 'desktop/frames.c')
-rw-r--r-- | desktop/frames.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/desktop/frames.c b/desktop/frames.c index 412741181..3667e3fde 100644 --- a/desktop/frames.c +++ b/desktop/frames.c @@ -66,10 +66,10 @@ void browser_window_scroll_callback(void *client_data, } else { struct rect rect; - rect.x0 = 0; - rect.y0 = 0; - rect.x1 = bw->width; - rect.y1 = bw->height; + rect.x0 = scrollbar_get_offset(bw->scroll_x); + rect.y0 = scrollbar_get_offset(bw->scroll_y); + rect.x1 = rect.x0 + bw->width; + rect.y1 = rect.y0 + bw->height; browser_window_update_box(bw, &rect); } |