From ab4c7668171005234206c6908e58b86db7faca05 Mon Sep 17 00:00:00 2001 From: Myk Taylor Date: Mon, 30 Jan 2023 08:48:45 -0800 Subject: [PATCH] Revert "allow tile list icons to be rendered properly" This reverts commit 508777897be527c1e7c64afe47b62bfcfc14503f. the fix was incorrect. the icon should be set to the pen when it is not a string, the icon_pen is only for when it is a string --- library/lua/gui/widgets.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/lua/gui/widgets.lua b/library/lua/gui/widgets.lua index 653107179..0696459cd 100644 --- a/library/lua/gui/widgets.lua +++ b/library/lua/gui/widgets.lua @@ -1713,7 +1713,7 @@ function List:onRenderBody(dc) local function paint_icon(icon, obj) if type(icon) ~= 'string' then - dc:tile(nil,icon) + dc:char(nil,icon) else if current then dc:string(icon, obj.icon_pen or self.icon_pen or cur_pen)