mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix topic profile icon on Retina screen (again).
This commit is contained in:
parent
34a2c5c8ce
commit
fdb29a756a
1 changed files with 5 additions and 2 deletions
|
@ -131,8 +131,11 @@ void TopicIconView::paintInRect(QPainter &p, QRect rect) {
|
||||||
const auto paint = [&](const QImage &image) {
|
const auto paint = [&](const QImage &image) {
|
||||||
const auto size = image.size() / style::DevicePixelRatio();
|
const auto size = image.size() / style::DevicePixelRatio();
|
||||||
p.drawImage(
|
p.drawImage(
|
||||||
rect.x() + (rect.width() - size.width()) / 2,
|
QRect(
|
||||||
rect.y() + (rect.height() - size.height()) / 2,
|
rect.x() + (rect.width() - size.width()) / 2,
|
||||||
|
rect.y() + (rect.height() - size.height()) / 2,
|
||||||
|
size.width(),
|
||||||
|
size.height()),
|
||||||
image);
|
image);
|
||||||
};
|
};
|
||||||
if (_player && _player->ready()) {
|
if (_player && _player->ready()) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue