Removed the oopsie

This commit is contained in:
Casey 2024-09-06 04:13:59 +03:00
parent 9532f196d5
commit 76f4835021
Signed by: hkc
GPG Key ID: F0F6CFE11CDB0960
2 changed files with 4 additions and 3 deletions

View File

@ -101,7 +101,7 @@ local function draw(img, ox, oy, monitor)
return nil, "setPaletteColor is not supported on this term"
end
if not t.setTextScale then
if not t.setTextScale and img.scale != 1 then
return nil, "setTextScale is not supported on this term"
end
@ -109,7 +109,9 @@ local function draw(img, ox, oy, monitor)
t.setPaletteColor(bit.blshift(1, i - 1), img.palette[i])
end
t.setTextScale(img.scale)
if img.scale != 1 then
t.setTextScale(img.scale)
end
for y = 1, img.h do
t.setCursorPos(ox, oy + y - 1)

View File

@ -1 +0,0 @@
some super secret stuff idk