aboutsummaryrefslogtreecommitdiff
path: root/src/lua/embed/boot.lua.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-10-22 21:30:21 +0800
committerchai <chaifix@163.com>2018-10-22 21:30:21 +0800
commit58d09aa3ca4409e2a15473b0ac3c0446f0acb1a2 (patch)
tree37dadab5575116c75b54064556b045ba8a245871 /src/lua/embed/boot.lua.h
parent99bea1e47c813016d89c9e99296fa66e183d808f (diff)
*misc
Diffstat (limited to 'src/lua/embed/boot.lua.h')
-rw-r--r--src/lua/embed/boot.lua.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lua/embed/boot.lua.h b/src/lua/embed/boot.lua.h
index 35606af..99e657b 100644
--- a/src/lua/embed/boot.lua.h
+++ b/src/lua/embed/boot.lua.h
@@ -40,6 +40,7 @@ end
function jin.core.run()
call(jin.core.onLoad)
+ jin.graphics.reset()
local dt = 0
local previous = jin.time.second()
local current = previous
@@ -138,9 +139,9 @@ jin.nogame = {
-------------------------------------------------------------------------
local function onError(msg)
+ jin.graphics.reset()
jin.graphics.setClearColor(100, 100, 100, 255)
jin.graphics.clear()
- jin.graphics.unsetFont()
jin.graphics.print("Error:\n" .. msg .. "\n" .. debug.traceback(), 5, 5)
jin.graphics.present()
while jin.core.running() do