mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
Fix format
This commit is contained in:
parent
ccf1e4cb56
commit
e79ea56d32
@ -305,7 +305,7 @@ void PropertiesDialog::createButtonBox()
|
||||
QImage blurred(const QImage &image, const QRect &rect, int radius, bool alphaOnly = false)
|
||||
{
|
||||
int tab[] = { 14, 10, 8, 6, 5, 5, 4, 3, 3, 3, 3, 2, 2, 2, 2, 2, 2 };
|
||||
int alpha = (radius < 1) ? 16 : (radius > 17) ? 1 : tab[radius - 1];
|
||||
int alpha = (radius < 1) ? 16 : ((radius > 17) ? 1 : tab[radius - 1]);
|
||||
|
||||
QImage result = image.convertToFormat(QImage::Format_ARGB32_Premultiplied);
|
||||
int r1 = rect.top();
|
||||
|
Loading…
Reference in New Issue
Block a user