From 6cc6b610c77754d5457f2e8c4f61209144c31c18 Mon Sep 17 00:00:00 2001 From: James Bursa Date: Sun, 14 Dec 2003 18:10:59 +0000 Subject: [project @ 2003-12-14 18:10:59 by bursa] Toggle size to full height only, fix empty window crash. svn path=/import/netsurf/; revision=429 --- riscos/window.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'riscos') diff --git a/riscos/window.c b/riscos/window.c index 72ebbd8d0..0f40f0efd 100644 --- a/riscos/window.c +++ b/riscos/window.c @@ -325,9 +325,9 @@ void ro_gui_window_open(gui_window *g, wimp_open *open) if ((state.flags & wimp_WINDOW_TOGGLED) && (state.flags & wimp_WINDOW_BOUNDED_ONCE) && !(state.flags & wimp_WINDOW_FULL_SIZE)) { - open->visible.x0 = open->visible.y0 = 0; - open->visible.x1 = open->visible.y1 = 0x1000; - width = height = 0x1000; + open->visible.y0 = 0; + open->visible.y1 = 0x1000; + height = 0x1000; } /* account for toolbar height, if present */ @@ -343,7 +343,7 @@ void ro_gui_window_open(gui_window *g, wimp_open *open) /* change extent if necessary */ if (g->data.browser.old_width != width || g->data.browser.old_height != height) { - if (g->data.browser.old_width != width) { + if (content && g->data.browser.old_width != width) { g->data.browser.reformat_pending = true; gui_reformat_pending = true; } -- cgit v1.2.3