summaryrefslogtreecommitdiff
path: root/img
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2022-08-06 23:41:28 +0100
committerubq323 <ubq323@ubq323.website>2022-08-06 23:41:28 +0100
commitcd3aeb20af1e0e360e51fc8e9d85cd66e278f18c (patch)
tree4394704ddeba67a23947af8fa0584cfc8b2f076b /img
parent99ad14f19fe9eb1cc8743d6d7ccafcff50f72d96 (diff)
img
Diffstat (limited to 'img')
-rw-r--r--img/driver.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/img/driver.lua b/img/driver.lua
index 8da9c39..065586c 100644
--- a/img/driver.lua
+++ b/img/driver.lua
@@ -8,6 +8,7 @@ _G.print = function(...)
o[ix] = tostring(select(ix,...))
end
table.insert(_G.ERRLOG,table.concat(o,"\t"))
+ _G.oldprint(...)
end
_G.rpr = function() _G.print = _G.oldprint end
@@ -16,6 +17,7 @@ local load_pnm = require("load_pnm").load
print("uu")
local better_disp = require("better_disp")
print("uu")
+local disp_common = require("disp_common")
local perr = require("util").perr
print("uu")
@@ -35,6 +37,6 @@ print("the")
print(xpcall(function() better_disp.disp(W,img,1,1) end,msgh))
print("endthe")
os.pullEvent("key")
---shitty_disp.reset_palette(term.current())
+disp_common.reset_palette(term.current())