diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2022-05-16 21:38:01 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2022-05-16 21:38:01 -0700 |
commit | 8382a4f8271948ee595184c025155df4472fef9c (patch) | |
tree | 1e31b451385beedc0f1f13a69c10015153b1affa /main.lua | |
parent | 741018db1f1ceca00b1a0b471c58115334db4502 (diff) | |
download | view.love-8382a4f8271948ee595184c025155df4472fef9c.tar.gz |
make sure to show the border of a drawing immediately after creating it
Diffstat (limited to 'main.lua')
-rw-r--r-- | main.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main.lua b/main.lua index 6992a61..ad5e908 100644 --- a/main.lua +++ b/main.lua @@ -112,7 +112,7 @@ function love.draw() y = y+pixels(line.h) local pmx,pmy = love.mouse.getX(), love.mouse.getY() - if pmx > 16 and pmx < 16+drawingw and pmy > line.y and pmy < line.y+pixels(line.h) then + if pmx < 16+drawingw and pmy > line.y and pmy < line.y+pixels(line.h) then love.graphics.setColor(0.75,0.75,0.75) love.graphics.rectangle('line', 16,line.y, drawingw,pixels(line.h)) if icon[current_mode] then |