mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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 {
|
bool single) const {
|
||||||
const auto ratio = style::DevicePixelRatio();
|
const auto ratio = style::DevicePixelRatio();
|
||||||
if (w <= 0 || !width() || !height()) {
|
if (w <= 0 || !width() || !height()) {
|
||||||
w = width() * ratio;
|
w = width();
|
||||||
} else if (h <= 0) {
|
} else if (h <= 0) {
|
||||||
h = std::max(int(int64(height()) * w / width()), 1) * ratio;
|
h = std::max(int(int64(height()) * w / width()), 1) * ratio;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue