diff options
author | Vincent Sanders <vince@kyllikki.org> | 2014-07-06 18:34:34 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2014-07-06 18:34:34 +0100 |
commit | 3a9fa29ee53bef70a0e643847acc2fb374501f70 (patch) | |
tree | e9a8946c7655e03e4c9a9d702bbf36b1952a92df /atari | |
parent | caf918d2f28f600184036aef3f096024d3af62a7 (diff) | |
download | netsurf-3a9fa29ee53bef70a0e643847acc2fb374501f70.tar.gz netsurf-3a9fa29ee53bef70a0e643847acc2fb374501f70.tar.bz2 |
try and improve usage of browser window internals
Diffstat (limited to 'atari')
-rw-r--r-- | atari/gui.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/atari/gui.c b/atari/gui.c index efa23efe4..f267b69a8 100644 --- a/atari/gui.c +++ b/atari/gui.c @@ -394,10 +394,10 @@ bool gui_window_get_scroll(struct gui_window *w, int *sx, int *sy) static void gui_window_set_scroll(struct gui_window *w, int sx, int sy) { - if ((w == NULL) - || (w->browser->bw == NULL) - || (w->browser->bw->current_content == NULL)) - return; + if ( (w == NULL) + || (w->browser->bw == NULL) + || (!browser_window_has_content(w->browser->bw))) + return; LOG(("scroll (gui_window: %p) %d, %d\n", w, sx, sy)); window_scroll_by(w->root, sx, sy); @@ -412,7 +412,7 @@ static void gui_window_set_scroll(struct gui_window *w, int sx, int sy) static void gui_window_update_extent(struct gui_window *gw) { - if( gw->browser->bw->current_content != NULL ) { + 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, |