summaryrefslogtreecommitdiff
path: root/riscos
diff options
context:
space:
mode:
authorJames Bursa <james@netsurf-browser.org>2006-05-06 13:09:50 +0000
committerJames Bursa <james@netsurf-browser.org>2006-05-06 13:09:50 +0000
commitb813b44a63f8bc83292bdcef16f3c31369214963 (patch)
tree0cfe7aaeab857a01ed4e6e34204188f5a1697869 /riscos
parent9de2b660a398eee61f3638f95dce2a57ee0da9ff (diff)
downloadnetsurf-b813b44a63f8bc83292bdcef16f3c31369214963.tar.gz
netsurf-b813b44a63f8bc83292bdcef16f3c31369214963.tar.bz2
Add Ctrl-Shift-Q and Ctrl-Shift-W to change scale in 10% steps.
svn path=/trunk/netsurf/; revision=2593
Diffstat (limited to 'riscos')
-rw-r--r--riscos/window.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/riscos/window.c b/riscos/window.c
index 45e234118..2d8016836 100644
--- a/riscos/window.c
+++ b/riscos/window.c
@@ -2061,7 +2061,13 @@ bool ro_gui_window_keypress(struct gui_window *g, int key, bool toolbar)
if (!content)
break;
old_scale = g->option.scale;
- if (key == 17) {
+ if (ro_gui_shift_pressed() && key == 17)
+ g->option.scale = ((int) (10 * g->option.scale -
+ 1)) / 10.0;
+ else if (ro_gui_shift_pressed() && key == 23)
+ g->option.scale = ((int) (10 * g->option.scale +
+ 1)) / 10.0;
+ else if (key == 17) {
for (int i = SCALE_SNAP_TO_SIZE - 1; i >= 0; i--)
if (scale_snap_to[i] < old_scale) {
g->option.scale = scale_snap_to[i];