about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-05-15 14:42:10 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-05-15 14:42:10 -0700
commit65cea736c32289ea2f0850ec5c32cdbcc8e121c1 (patch)
treeca5693f0fefcdc5dc99889160e802d25f304e32a
parent6b6098593e2682d1a8f6095bc87ad91872f18cb7 (diff)
downloadtext.love-65cea736c32289ea2f0850ec5c32cdbcc8e121c1.tar.gz
bugfix: text sometimes getting colored like drawing borders
-rw-r--r--main.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.lua b/main.lua
index 86a1e2a..5e9e883 100644
--- a/main.lua
+++ b/main.lua
@@ -116,10 +116,12 @@ function love.draw()
 --?       print(#line.points)
       draw_pending_shape(16,line.y, line)
     else
+      love.graphics.setColor(0,0,0)
       love.graphics.draw(text, 25,y, 0, 1.5)
     end
   end
   -- cursor
+  love.graphics.setColor(0,0,0)
   love.graphics.print('_', 25+text:getWidth()*1.5, y)
 
   -- display side effect