From 92911e42e03bea7970eb195422b87a184030d49d Mon Sep 17 00:00:00 2001 From: Leonardo Zide Date: Fri, 23 Oct 2026 15:13:29 -0700 Subject: [PATCH] Fix thumbnail badge scaling on Retina displays Synth and train track badges were drawn at a fixed pixel size before thumbnail downsampling, making them appear smaller on high-DPI displays. Scale badge painting by the thumbnail device pixel ratio and enable smooth image transforms to preserve the apparent badge size across display scales. --- common/lc_thumbnailmanager.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/lc_thumbnailmanager.cpp b/common/lc_thumbnailmanager.cpp index 39c06718..eef7a1c2 100644 --- a/common/lc_thumbnailmanager.cpp +++ b/common/lc_thumbnailmanager.cpp @@ -436,6 +436,8 @@ void lcThumbnailManager::DrawThumbnail(lcPartThumbnailId ThumbnailId, lcPartThum ImageBits += Icon.bytesPerLine(); } + Painter.setRenderHint(QPainter::SmoothPixmapTransform); + Painter.scale(Thumbnail.DeviceScale, Thumbnail.DeviceScale); Painter.drawImage(QPoint(0, 0), Icon); Painter.end(); }