summaryrefslogtreecommitdiff
path: root/img
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2022-08-06 23:11:40 +0100
committerubq323 <ubq323@ubq323.website>2022-08-06 23:11:40 +0100
commit0974b8841550a12bd1996171031b6bde911fa5d2 (patch)
tree99f71a1d5af7b7eb7db440d9e3691661637e183c /img
parentdf84cb8ccdedce4e81312fbefecbedd96c1d19ee (diff)
img
Diffstat (limited to 'img')
-rw-r--r--img/driver.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/img/driver.lua b/img/driver.lua
index b274646..8b12ac7 100644
--- a/img/driver.lua
+++ b/img/driver.lua
@@ -8,8 +8,9 @@ local file,err = io.open(arg[1],"rb")
perr(err,"io.open")
local ff = file:read("a")
local img = load_pnm(ff)
-term.clear()
-better_disp.disp(term.current(),img,1,1)
+local W = window.create(term.current(),20,10,20,20)
+W.clear()
+better_disp.disp(W,img,1,1)
os.pullEvent("key")
--shitty_disp.reset_palette(term.current())