summaryrefslogtreecommitdiff
path: root/src/commands.c
diff options
context:
space:
mode:
authorportix <portix@gmx.net>2012-01-06 15:26:05 +0100
committerportix <portix@gmx.net>2012-01-06 15:26:05 +0100
commit3a3805f3df40a1ef4b628ada8374e601d5265d52 (patch)
tree84b6e43e5c3f7e6aaf45249acb46749610ca8fc5 /src/commands.c
parentd81f9d3227ce491a6623e675df9475d43c33d4f0 (diff)
downloaddwb-3a3805f3df40a1ef4b628ada8374e601d5265d52.zip
Replace zoom_normal with zoom
Diffstat (limited to 'src/commands.c')
-rw-r--r--src/commands.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/commands.c b/src/commands.c
index 5600a552..6d841e46 100644
--- a/src/commands.c
+++ b/src/commands.c
@@ -314,7 +314,8 @@ commands_scroll(KeyMap *km, Arg *arg) {
DwbStatus
commands_set_zoom_level(KeyMap *km, Arg *arg) {
GList *gl = arg->p ? arg->p : dwb.state.fview;
- webkit_web_view_set_zoom_level(WEBKIT_WEB_VIEW(((View*)gl->data)->web), arg->d);
+ double zoomlevel = dwb.state.nummod < 0 ? arg->d : (double)dwb.state.nummod / 100;
+ webkit_web_view_set_zoom_level(WEBKIT_WEB_VIEW(((View*)gl->data)->web), zoomlevel);
return STATUS_OK;
}/*}}}*/