From 1768411806861f3b1a3f1b6b37f2ff3d7120c315 Mon Sep 17 00:00:00 2001 From: ubq323 Date: Sat, 6 Aug 2022 01:23:21 +0100 Subject: driving --- img/driver.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'img') diff --git a/img/driver.lua b/img/driver.lua index 7a8aa53..b274646 100644 --- a/img/driver.lua +++ b/img/driver.lua @@ -1,7 +1,7 @@ package.path = "/?;/?.lua;"..package.path local load_pnm = require("load_pnm").load -local shitty_disp = require("shitty_disp") +local better_disp = require("better_disp") local perr = require("util").perr local file,err = io.open(arg[1],"rb") @@ -9,8 +9,8 @@ perr(err,"io.open") local ff = file:read("a") local img = load_pnm(ff) term.clear() -shitty_disp.disp(term.current(),img,1,1) +better_disp.disp(term.current(),img,1,1) os.pullEvent("key") -shitty_disp.reset_palette(term.current()) +--shitty_disp.reset_palette(term.current()) -- cgit v1.2.3