diff options
author | Richard Wilson <rjw@netsurf-browser.org> | 2006-07-12 17:23:00 +0000 |
---|---|---|
committer | Richard Wilson <rjw@netsurf-browser.org> | 2006-07-12 17:23:00 +0000 |
commit | 3d63f5e5b2d896624775bcb962e7355e411d9953 (patch) | |
tree | 546b75d2b3dd56273635c0a7ebeabfa108f250ef | |
parent | 82dd81b859cfefe2a5d3537f0145b35af2f10548 (diff) | |
download | netsurf-3d63f5e5b2d896624775bcb962e7355e411d9953.tar.gz netsurf-3d63f5e5b2d896624775bcb962e7355e411d9953.tar.bz2 |
Ctrl + resize scales the content to the new width.
svn path=/trunk/netsurf/; revision=2735
-rw-r--r-- | riscos/window.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/riscos/window.c b/riscos/window.c index aa917f9d4..121c43766 100644 --- a/riscos/window.c +++ b/riscos/window.c @@ -1260,6 +1260,9 @@ void ro_gui_window_open(struct gui_window *g, wimp_open *open) /* change extent if necessary */ if (g->old_width != width || g->old_height != height) { if (content && g->old_width != width) { + xosbyte1(osbyte_SCAN_KEYBOARD, 1 ^ 0x80, 0, &key_down); + if (key_down) + g->option.scale = (g->option.scale * width) / g->old_width; g->reformat_pending = true; gui_reformat_pending = true; } |