summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErkin Bahceci <erkinbah@gmail.com>2009-08-08 11:10:25 -0500
committerErkin Bahceci <erkinbah@gmail.com>2009-08-08 11:10:25 -0500
commit284c36f213170aedbbdbba9fac5447b4b75d4391 (patch)
treee9b88e45c94c6e499b72819ab6ed9ef3ac8d628d
parent6c5d34f7d043bbb876f0a86b66576af576f10edd (diff)
downloadmag-284c36f213170aedbbdbba9fac5447b4b75d4391.tar.gz
mag-284c36f213170aedbbdbba9fac5447b4b75d4391.tar.bz2
Start zoomed when initiated.
-rw-r--r--src/mag.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mag.cpp b/src/mag.cpp
index 89e4dff..686a417 100644
--- a/src/mag.cpp
+++ b/src/mag.cpp
@@ -849,6 +849,8 @@ MagScreen::initiate (CompAction *action,
{
if (factor != 1.0)
factor = optionGetZoomFactor ();
+
+ zTarget = MAX (1.0, MIN (64.0, factor));
}
adjust = true;
cScreen->damageScreen ();