summaryrefslogtreecommitdiff
path: root/monkey
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2014-10-15 21:35:14 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2014-10-15 21:35:14 +0100
commit2f4d120421781385d169299bf6ce1705aa8d26bf (patch)
treec6fdd33a4c88e299b5d2e1c7a87576cddc760a6c /monkey
parent6548f753a5bfe5d47c901c76dee8750f3fa7f615 (diff)
downloadnetsurf-2f4d120421781385d169299bf6ce1705aa8d26bf.tar.gz
netsurf-2f4d120421781385d169299bf6ce1705aa8d26bf.tar.bz2
Use API to get window extents.
Diffstat (limited to 'monkey')
-rw-r--r--monkey/browser.c8
1 files 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