From 2f4d120421781385d169299bf6ce1705aa8d26bf Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Wed, 15 Oct 2014 21:35:14 +0100 Subject: Use API to get window extents. --- monkey/browser.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/monkey/browser.c b/monkey/browser.c index c0154b6bb..e66e6bf32 100644 --- a/monkey/browser.c +++ b/monkey/browser.c @@ -166,13 +166,13 @@ gui_window_update_box(struct gui_window *g, const struct rect *rect) static void gui_window_update_extent(struct gui_window *g) { - if (!g->bw->current_content) + int width, height; + + if (browser_window_get_extents(g->bw, false, &width, &height) != NSERROR_OK) return; fprintf(stdout, "WINDOW UPDATE_EXTENT WIN %u WIDTH %d HEIGHT %d\n", - g->win_num, - content_get_width(g->bw->current_content), - content_get_height(g->bw->current_content)); + g->win_num, width, height); } static void -- cgit v1.2.3