mirror of
https://github.com/AR2000AR/openComputers_codes.git
synced 2025-09-08 14:41:14 +02:00
[libGUI] bugfix when giving a ImageFile as argument
This commit is contained in:
@@ -11,7 +11,7 @@ Image.private.drawMethod = Image.DRAW_METHOD_OLD
|
||||
Image.constructor = function(self, x, y, img, drawMethod)
|
||||
if (type(img) == "string") then
|
||||
self.imageData = ImageFile(img)
|
||||
elseif (type("table") and img.class == "Image") then
|
||||
elseif (type("table") and img.class == "ImageFile") then
|
||||
self.imageData = img
|
||||
end
|
||||
if (drawMethod ~= nil) then self:setDrawMethod(drawMethod) end
|
||||
|
Reference in New Issue
Block a user