summaryrefslogtreecommitdiffstats
path: root/gtk-gui.c
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2012-11-11 16:11:22 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2012-11-11 17:21:37 +0100
commit9e2b8edb4d73efa5504ce5d99de3eec7a3967ab7 (patch)
treec27211c67b7490a1d8236f8ad2e1479e95d11ef7 /gtk-gui.c
parent502e2b0e86a8c961b82ea2824e9f3fd82e83eb72 (diff)
downloadsubsurface-9e2b8edb4d73efa5504ce5d99de3eec7a3967ab7.tar.gz
Make the "click-to-zoom" use a 2.5x zoom factor
I think I prefer the 2.5x zoom over the pure doubling. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'gtk-gui.c')
-rw-r--r--gtk-gui.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk-gui.c b/gtk-gui.c
index 17cfe9bf5..a2f4a174f 100644
--- a/gtk-gui.c
+++ b/gtk-gui.c
@@ -1361,8 +1361,8 @@ static gboolean expose_event(GtkWidget *widget, GdkEventExpose *event, gpointer
cairo_paint(gc.cr);
if (zoom_x >= 0) {
- cairo_translate(gc.cr, -zoom_x, -zoom_y);
- cairo_scale(gc.cr, 2.0, 2.0);
+ cairo_translate(gc.cr, -1.5*zoom_x, -1.5*zoom_y);
+ cairo_scale(gc.cr, 2.5, 2.5);
}
if (dive) {