diff options
author | Vincent Sanders <vince@kyllikki.org> | 2014-10-19 19:21:00 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2014-10-19 19:21:00 +0100 |
commit | 5ef5ff6a073ea0f08299ce79438e6e937d49334e (patch) | |
tree | 905db599aa244032ab856adff12df54cfe195166 /atari | |
parent | 1180d1932480234619163d57a4dc2629c9309f38 (diff) | |
download | netsurf-5ef5ff6a073ea0f08299ce79438e6e937d49334e.tar.gz netsurf-5ef5ff6a073ea0f08299ce79438e6e937d49334e.tar.bz2 |
stop dereferencing browser private data in atari gui
Diffstat (limited to 'atari')
-rw-r--r-- | atari/gui.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/atari/gui.c b/atari/gui.c index 135a991e0..4ec126ab5 100644 --- a/atari/gui.c +++ b/atari/gui.c @@ -462,12 +462,11 @@ static void gui_window_update_extent(struct gui_window *gw) if(browser_window_has_content(gw->browser->bw)) { /** @todo store content size. */ if(window_get_active_gui_window(gw->root) == gw) { - window_set_content_size( gw->root, - content_get_width(gw->browser->bw->current_content), - content_get_height(gw->browser->bw->current_content) - ); - window_update_back_forward(gw->root); + int width, height; GRECT area; + browser_window_get_extents(gw->browser->bw, false, &width, &height); + window_set_content_size(gw->root, width, height); + window_update_back_forward(gw->root); window_get_grect(gw->root, BROWSER_AREA_CONTENT, &area); window_schedule_redraw_grect(gw->root, &area); } |