about summary refs log tree commit diff stats
path: root/button.lua
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-08-23 09:37:38 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-08-23 09:37:38 -0700
commit490f10c6f8f38cc83264c38dd93e32d471530880 (patch)
treef36c90a80351831ae67c1d29432b9fe5be267a3e /button.lua
parentcfdac28e18319c83ebd39ab90ead49cafbf7081e (diff)
downloadlines.love-490f10c6f8f38cc83264c38dd93e32d471530880.tar.gz
indent
Diffstat (limited to 'button.lua')
-rw-r--r--button.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/button.lua b/button.lua
index 42c44e3..5042ae6 100644
--- a/button.lua
+++ b/button.lua
@@ -14,7 +14,9 @@ end
 function propagate_to_button_handlers(x, y, mouse_button)
   for _,ev in ipairs(Button_handlers) do
     if x>ev.x and x<ev.x+ev.w and y>ev.y and y<ev.y+ev.h then
-      if ev.onpress1 and mouse_button == 1 then ev.onpress1() end
+      if ev.onpress1 and mouse_button == 1 then
+        ev.onpress1()
+      end
     end
   end
 end