Fixed blurry rendering of layoutbox

This commit is contained in:
Miroslav Bendík 2023-03-26 07:45:30 +02:00
parent b54e50ad6c
commit eccf35fa23
1 changed files with 3 additions and 1 deletions

View File

@ -33,7 +33,9 @@ local function update(w, screen)
w._layoutbox_tooltip:set_text(name or "[no name]")
local img = surface.load_silently(beautiful["layout_" .. name], false)
w.imagebox.image = img
if img then
w.imagebox:set_image(beautiful["layout_" .. name])
end
w.textbox.text = img and "" or name
end