Clean up code

This commit is contained in:
luk3yx 2022-05-22 18:12:06 +12:00
parent 28bbd80b51
commit 68dd6d4137
1 changed files with 1 additions and 2 deletions

View File

@ -76,7 +76,6 @@ end
function nodes.image(node, scale, _, possibly_using_gles) function nodes.image(node, scale, _, possibly_using_gles)
local w = floor(node.w * scale) local w = floor(node.w * scale)
local h = floor(node.h * scale) local h = floor(node.h * scale)
local elem_scale = {x = 1, y = 1}
local texture = node.texture_name local texture = node.texture_name
if w > 0 and h > 0 and texture ~= "" then if w > 0 and h > 0 and texture ~= "" then
@ -105,7 +104,7 @@ function nodes.image(node, scale, _, possibly_using_gles)
hud_elem_type = "image", hud_elem_type = "image",
text = texture, text = texture,
alignment = {x = 1, y = 1}, alignment = {x = 1, y = 1},
scale = elem_scale, scale = {x = 1, y = 1},
} }
end end