From e4b97802a5228f0db4dc3aa1d51cc837ded932a9 Mon Sep 17 00:00:00 2001 From: poire-z Date: Thu, 16 Feb 2023 23:30:52 +0100 Subject: [PATCH] ImageWidget: account for alpha in the cache hash --- frontend/ui/widget/imagewidget.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/ui/widget/imagewidget.lua b/frontend/ui/widget/imagewidget.lua index a743b7dc4..299ac7356 100644 --- a/frontend/ui/widget/imagewidget.lua +++ b/frontend/ui/widget/imagewidget.lua @@ -143,7 +143,7 @@ function ImageWidget:_loadfile() width = self.width height = self.height end - local hash = "image|"..self.file.."|"..(width or "").."|"..(height or "") + local hash = "image|"..self.file.."|"..(width or "").."|"..(height or "")..tostring(self.alpha) -- Do the scaling for DPI here, so it can be cached and not re-done -- each time in _render() (but not if scale_factor, to avoid double scaling) local scale_for_dpi_here = false