[planetblupi] 15/29: Check that the zoom (-z) is in the range
Didier Raboud
odyx at moszumanska.debian.org
Tue Jan 2 08:38:42 UTC 2018
This is an automated email from the git hooks/post-receive script.
odyx pushed a commit to branch debian/master
in repository planetblupi.
commit f97d1c3644cb3e486e7d62f6da276f048c93e26c
Author: Mathieu Schroeter <mathieu at schroetersa.ch>
Date: Wed Dec 13 23:01:48 2017 +0100
Check that the zoom (-z) is in the range
---
src/blupi.cxx | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/blupi.cxx b/src/blupi.cxx
index 7ea1505..515d38d 100644
--- a/src/blupi.cxx
+++ b/src/blupi.cxx
@@ -641,6 +641,8 @@ parseArgs (int argc, char * argv[], bool & exit)
if (args["zoom"])
{
g_windowScale = args["zoom"];
+ if (g_windowScale != 1 && g_windowScale != 2)
+ g_windowScale = 1;
g_settingsOverload |= SETTING_ZOOM;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/planetblupi.git
More information about the Pkg-games-commits
mailing list