summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Bursa <james@netsurf-browser.org>2003-12-14 18:10:59 +0000
committerJames Bursa <james@netsurf-browser.org>2003-12-14 18:10:59 +0000
commit6cc6b610c77754d5457f2e8c4f61209144c31c18 (patch)
tree8e3c8cb7d7c6e9f6294cee09c497ad3c9b8f2e2f
parentd2c8263e5923277d31e516503dfd08943e3ab68a (diff)
downloadnetsurf-6cc6b610c77754d5457f2e8c4f61209144c31c18.tar.gz
netsurf-6cc6b610c77754d5457f2e8c4f61209144c31c18.tar.bz2
[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
-rw-r--r--riscos/window.c8
1 files changed, 4 insertions, 4 deletions
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;
}