From cd3aeb20af1e0e360e51fc8e9d85cd66e278f18c Mon Sep 17 00:00:00 2001 From: ubq323 Date: Sat, 6 Aug 2022 23:41:28 +0100 Subject: img --- img/driver.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'img') 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()) -- cgit v1.2.3