diff options
Diffstat (limited to 'riscos')
-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; } |