diff options
author | James Bursa <james@netsurf-browser.org> | 2004-06-12 17:43:37 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2004-06-12 17:43:37 +0000 |
commit | 0ebbc1330c4881dcbe2db1bc10dcf9ba1d3b915c (patch) | |
tree | 1388fcc6e29dcbb53b84117627dc2f8e0a2a491e /riscos/window.c | |
parent | bdbd46584f9a1342da4972e557bd5a08bf0b5cb7 (diff) | |
download | netsurf-0ebbc1330c4881dcbe2db1bc10dcf9ba1d3b915c.tar.gz netsurf-0ebbc1330c4881dcbe2db1bc10dcf9ba1d3b915c.tar.bz2 |
[project @ 2004-06-12 17:43:37 by bursa]
Fix limit zooming by ^Q / ^W. Increase limit to 1000.
svn path=/import/netsurf/; revision=967
Diffstat (limited to 'riscos/window.c')
-rw-r--r-- | riscos/window.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/riscos/window.c b/riscos/window.c index 8270088bf..aeef7b557 100644 --- a/riscos/window.c +++ b/riscos/window.c @@ -944,16 +944,20 @@ bool ro_gui_window_keypress(gui_window *g, int key, bool toolbar) case 17: /* CTRL+Q (Zoom out) */ current_gui = g; - if (current_gui->scale > 0.1) { + if (0.1 < current_gui->scale) { current_gui->scale -= 0.1; + if (current_gui->scale < 0.1) + current_gui->scale = 0.1; current_gui->data.browser.reformat_pending = true; gui_reformat_pending = true; } return true; case 23: /* CTRL+W (Zoom in) */ current_gui = g; - if (current_gui->scale < 5) { + if (current_gui->scale < 10.0) { current_gui->scale += 0.1; + if (10.0 < current_gui->scale) + current_gui->scale = 10.0; current_gui->data.browser.reformat_pending = true; gui_reformat_pending = true; } |