aboutsummaryrefslogtreecommitdiffstats
path: root/core.lua
diff options
context:
space:
mode:
authorMatthias Richter <matthias.richter@iosb.fraunhofer.de>2013-12-11 15:19:04 +0100
committerMatthias Richter <matthias.richter@iosb.fraunhofer.de>2013-12-11 15:25:06 +0100
commit66a089a07f4d24557cb8e06f78eefb07a344ea32 (patch)
tree9e9fbaa80393cb50d5fa05b94098a1a99717d5ec /core.lua
parentffd187dc177f4a15fa2e87579b9cbabee38b8245 (diff)
downloadQuickie-66a089a07f4d24557cb8e06f78eefb07a344ea32.tar.gz
Quickie-66a089a07f4d24557cb8e06f78eefb07a344ea32.tar.bz2
Quickie-66a089a07f4d24557cb8e06f78eefb07a344ea32.tar.xz
Quickie-66a089a07f4d24557cb8e06f78eefb07a344ea32.zip
Fix bug in input.lua, make 0.9-ready, add utf8 editing
1) [input.lua] Pressing backspace while the cursor was at the beggining of the text removed the first character. Fixed thanks to riidom. 2) [LÖVE 0.9] Use setLine(Width|Style) instead of setLine. Split keyboard.pressed() into keyboard.pressed() and keyboard.textinput(). (see readme) 3) [utf8.lua] Add support for UTF-8 text editing. May still fail spectacurlarly with invalid UTF-8 strings.
Diffstat (limited to 'core.lua')
-rw-r--r--core.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/core.lua b/core.lua
index cbccbae..42b1ae1 100644
--- a/core.lua
+++ b/core.lua
@@ -99,7 +99,8 @@ local function draw()
for i = 1,draw_items.n do draw_items[i]() end
-- restore graphics state
- love.graphics.setLine(lw, ls)
+ love.graphics.setLineWidth(lw)
+ love.graphics.setLineStyle(ls)
if f then love.graphics.setFont(f) end
love.graphics.setColor(c)