mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +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 size = image.size() / style::DevicePixelRatio();
|
||||
p.drawImage(
|
||||
rect.x() + (rect.width() - size.width()) / 2,
|
||||
rect.y() + (rect.height() - size.height()) / 2,
|
||||
QRect(
|
||||
rect.x() + (rect.width() - size.width()) / 2,
|
||||
rect.y() + (rect.height() - size.height()) / 2,
|
||||
size.width(),
|
||||
size.height()),
|
||||
image);
|
||||
};
|
||||
if (_player && _player->ready()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue