about summary refs log tree commit diff stats
path: root/main.lua
diff options
context:
space:
mode:
Diffstat (limited to 'main.lua')
-rw-r--r--main.lua13
1 files changed, 0 insertions, 13 deletions
diff --git a/main.lua b/main.lua
index 773a43b..0b3eedc 100644
--- a/main.lua
+++ b/main.lua
@@ -490,7 +490,6 @@ end
 
 function love.textinput(t)
   if love.mouse.isDown('1') then return end
-  if mouse_in_drawing() then return end
   if lines[cursor_line].mode == 'drawing' then return end
   local byteoffset
   if cursor_pos > 1 then
@@ -765,18 +764,6 @@ function nearest_cursor_pos(line, x, hint)
   return right
 end
 
-function mouse_in_drawing()
-  local x, y = love.mouse.getX(), love.mouse.getY()
-  for _,drawing in ipairs(lines) do
-    if drawing.mode == 'drawing' then
-      if y >= drawing.y and y < drawing.y + pixels(drawing.h) and x >= 16 and x < 16+drawingw then
-        return true
-      end
-    end
-  end
-  return false
-end
-
 function current_drawing()
   local x, y = love.mouse.getX(), love.mouse.getY()
   for _,drawing in ipairs(lines) do