about summary refs log tree commit diff stats
path: root/main.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-05-17 08:12:09 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-05-17 08:12:09 -0700
commit0b252a4ab71f57d68032f931764d2cff694da548 (patch)
treeb636d8015bcb7f61afc30b03bf0fa414b5c80249 /main.lua
parent8446ec0fbb38010ba7338dc693ada9c67bf3282a (diff)
downloadtext.love-0b252a4ab71f57d68032f931764d2cff694da548.tar.gz
reset zoom
Diffstat (limited to 'main.lua')
-rw-r--r--main.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/main.lua b/main.lua
index f47b61f..b900809 100644
--- a/main.lua
+++ b/main.lua
@@ -605,6 +605,10 @@ function keychord_pressed(chord)
     drawingw = drawingw/zoom
     zoom = zoom-0.5
     drawingw = drawingw*zoom
+  elseif chord == 'C-0' then
+    drawingw = drawingw/zoom
+    zoom = 1.5
+    drawingw = drawingw*zoom
   -- shortcuts for drawings
   elseif chord == 'escape' and love.mouse.isDown('1') then
     local drawing = current_drawing()
@@ -1101,6 +1105,8 @@ function draw_help_without_mouse_pressed(drawing)
   end
   love.graphics.print("* Press 'ctrl+=' or 'ctrl+-' to zoom in or out", 16+30,y, 0, zoom)
   y = y+15*zoom
+  love.graphics.print("* Press 'ctrl+0' to reset zoom", 16+30,y, 0, zoom)
+  y = y+15*zoom
   y = y+15*zoom
   love.graphics.print("Hit 'esc' now to hide this message", 16+30,y, 0, zoom)
   y = y+15*zoom