diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2014-10-15 21:35:14 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2014-10-15 21:35:14 +0100 |
commit | 2f4d120421781385d169299bf6ce1705aa8d26bf (patch) | |
tree | c6fdd33a4c88e299b5d2e1c7a87576cddc760a6c /monkey | |
parent | 6548f753a5bfe5d47c901c76dee8750f3fa7f615 (diff) | |
download | netsurf-2f4d120421781385d169299bf6ce1705aa8d26bf.tar.gz |
Use API to get window extents.
Diffstat (limited to 'monkey')
-rw-r--r-- | monkey/browser.c | 8 |
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 |