2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Fix stickers on Linux 32 bit.

This commit is contained in:
John Preston
2019-07-15 14:17:22 +02:00
parent f2b3d9714f
commit 7a11d1e31f
9 changed files with 25 additions and 20 deletions

View File

@@ -548,17 +548,17 @@ const QPixmap &Image::pix(
checkSource();
if (w <= 0 || !width() || !height()) {
w = width();
} else {
w *= cIntRetinaFactor();
h *= cIntRetinaFactor();
}
w = width();
} else {
w *= cIntRetinaFactor();
h *= cIntRetinaFactor();
}
auto options = Option::Smooth | Option::None;
auto k = PixKey(w, h, options);
auto i = _sizesCache.constFind(k);
if (i == _sizesCache.cend()) {
auto p = pixNoCache(origin, w, h, options);
p.setDevicePixelRatio(cRetinaFactor());
p.setDevicePixelRatio(cRetinaFactor());
i = _sizesCache.insert(k, p);
ActiveCache().increment(ComputeUsage(*i));
}