mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 22:46:10 +00:00
Fix topic profile icon on Retina screen (again).
This commit is contained in:
@@ -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()) {
|
||||||
|
Reference in New Issue
Block a user