summaryrefslogtreecommitdiff
path: root/riscos/window.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2014-10-25 12:02:36 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2014-10-25 12:02:36 +0100
commitaf3cb6bf94b77cda7435cc26f55aca8b193bd89d (patch)
tree715997220174cd1af7ffc9670baa3f00a75975d1 /riscos/window.c
parenteea369afe78a9ad2c5fb3bafed6118a8d62616ab (diff)
downloadnetsurf-af3cb6bf94b77cda7435cc26f55aca8b193bd89d.tar.gz
netsurf-af3cb6bf94b77cda7435cc26f55aca8b193bd89d.tar.bz2
Use browser_window_is_frameset instead of dereffing bw.
Diffstat (limited to 'riscos/window.c')
-rw-r--r--riscos/window.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/riscos/window.c b/riscos/window.c
index eafc8145b..45c05c6e6 100644
--- a/riscos/window.c
+++ b/riscos/window.c
@@ -1327,7 +1327,7 @@ void gui_window_set_extent(struct gui_window *g, int width, int height)
/* the top-level framed window is a total pain. to get it to maximise
* to the top of the screen we need to fake it having a suitably large
* extent */
- if (g->bw->children) {
+ if (browser_window_is_frameset(g->bw)) {
ro_gui_screen_size(&screen_width, &height);
if (g->toolbar)
height -= ro_toolbar_full_height(g->toolbar);
@@ -1535,7 +1535,7 @@ void ro_gui_window_open(wimp_open *open)
/* windows lose scrollbars when containing a frameset */
bool no_hscroll = false;
- bool no_vscroll = g->bw->children;
+ bool no_vscroll = browser_window_is_frameset(g->bw);
/* hscroll */
size = ro_get_hscroll_height(NULL);
@@ -1609,7 +1609,7 @@ void ro_gui_window_open(wimp_open *open)
* therefore fixed.
*/
- if (g->bw->children != NULL) {
+ if (browser_window_is_frameset(g->bw)) {
state.xscroll = 0;
state.yscroll = toolbar_height;
}
@@ -3258,7 +3258,7 @@ void ro_gui_window_scroll_action(struct gui_window *g,
* because it implements frame scroll bars.
*/
- if (!handled && g->bw->children == NULL) {
+ if (!handled && (browser_window_is_frameset(g->bw) == false)) {
switch (step_x) {
case SCROLL_TOP:
state.xscroll -= 0x10000000;