Improve spoilers at low resolutions
This commit is contained in:
parent
a1a6676eab
commit
2687a19b14
1 changed files with 4 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue