Improve spoilers at low resolutions

This commit is contained in:
kukuruzka 2024-02-25 18:44:26 +02:00 committed by John Preston
parent a1a6676eab
commit 2687a19b14

View file

@ -25,7 +25,7 @@
namespace Ui {
namespace {
constexpr auto kVersion = 1;
constexpr auto kVersion = 2;
constexpr auto kFramesPerRow = 10;
constexpr auto kImageSpoilerDarkenAlpha = 32;
constexpr auto kMaxCacheSize = 5 * 1024 * 1024;
@ -186,7 +186,9 @@ struct Particle {
auto hq = PainterHighQualityEnabler(p);
p.setPen(Qt::NoPen);
p.setBrush(Qt::white);
p.drawRoundedRect(1., 1., width, height, radius, radius);
QPainterPath path;
path.addRoundedRect(1., 1., width, height, radius, radius);
p.drawPath(path);
p.end();
return result;
}