Precise+resetzoom = 100% zoom (instead of UserZoom)
authorWuzzy <Wuzzy2@mail.ru>
Tue, 05 Feb 2019 02:18:13 +0100
changeset 14683 c96889bf5796
parent 14682 93429d8f6b3f
child 14684 4eaeba349179
Precise+resetzoom = 100% zoom (instead of UserZoom)
README.md
hedgewars/uCommandHandlers.pas
--- a/README.md	Tue Feb 05 02:13:04 2019 +0100
+++ b/README.md	Tue Feb 05 02:18:13 2019 +0100
@@ -100,6 +100,7 @@
 * Switch  + Toggle hedgehog tags: Toggle hedgehog tag translucency
 * Precise + Toggle team bars + Switch: Toggle HUD
 * Precise + Capture (screenshot key): Save current map + mask into Screenshot directory
+* Precise + Reset zoom: Set zoom to 100% (instead of the zoom level in the settings)
 
 System requirements
 -------------------
--- a/hedgewars/uCommandHandlers.pas	Tue Feb 05 02:13:04 2019 +0100
+++ b/hedgewars/uCommandHandlers.pas	Tue Feb 05 02:18:13 2019 +0100
@@ -732,7 +732,10 @@
 procedure chZoomReset(var s: shortstring);
 begin
     s:= s; // avoid compiler hint
-    ZoomValue:= UserZoom;
+    if (LocalMessage and gmPrecise <> 0) then
+        ZoomValue:= cDefaultZoomLevel
+    else
+        ZoomValue:= UserZoom;
 end;
 
 procedure chMapGen(var s: shortstring);