From eed2a97eca65f1b65faf85865d67171031653727 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sat, 25 Oct 2014 12:04:11 +0100 Subject: Add bw function to get scrollbar type. --- desktop/frames.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'desktop/frames.c') diff --git a/desktop/frames.c b/desktop/frames.c index 534cca4f7..ff9b88286 100644 --- a/desktop/frames.c +++ b/desktop/frames.c @@ -111,10 +111,10 @@ void browser_window_handle_scrollbars(struct browser_window *bw) c_height = content_get_height(h); } - if (bw->scrolling == SCROLLING_YES) { + if (bw->scrolling == BW_SCROLLING_YES) { scroll_x = true; scroll_y = true; - } else if (bw->scrolling == SCROLLING_AUTO && + } else if (bw->scrolling == BW_SCROLLING_AUTO && bw->current_content) { int bw_width = bw->width; int bw_height = bw->height; -- cgit v1.2.3