mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Fix link / forward preview on Retina screen.
Regression was introduced in 3ff17a8789
.
This commit is contained in:
parent
9918a20946
commit
71d4b64691
1 changed files with 1 additions and 1 deletions
|
@ -349,7 +349,7 @@ const QPixmap &Image::cached(
|
|||
bool single) const {
|
||||
const auto ratio = style::DevicePixelRatio();
|
||||
if (w <= 0 || !width() || !height()) {
|
||||
w = width() * ratio;
|
||||
w = width();
|
||||
} else if (h <= 0) {
|
||||
h = std::max(int(int64(height()) * w / width()), 1) * ratio;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue