mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-18 00:29:31 +03:00
Use API to get window extents.
This commit is contained in:
parent
6548f753a5
commit
2f4d120421
@ -166,13 +166,13 @@ gui_window_update_box(struct gui_window *g, const struct rect *rect)
|
|||||||
static void
|
static void
|
||||||
gui_window_update_extent(struct gui_window *g)
|
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;
|
return;
|
||||||
|
|
||||||
fprintf(stdout, "WINDOW UPDATE_EXTENT WIN %u WIDTH %d HEIGHT %d\n",
|
fprintf(stdout, "WINDOW UPDATE_EXTENT WIN %u WIDTH %d HEIGHT %d\n",
|
||||||
g->win_num,
|
g->win_num, width, height);
|
||||||
content_get_width(g->bw->current_content),
|
|
||||||
content_get_height(g->bw->current_content));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user