mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-14 18:58:36 +12:00
Use floating point pixel ratio
This commit is contained in:
parent
c9b0f0e734
commit
833fbe015e
5 changed files with 10 additions and 10 deletions
|
@ -494,7 +494,7 @@ QPixmap trophy_manager_dialog::GetResizedGameIcon(int index)
|
|||
return QPixmap();
|
||||
}
|
||||
const QPixmap icon = item->data(Qt::UserRole).value<QPixmap>();
|
||||
const int dpr = devicePixelRatio();
|
||||
const qreal dpr = devicePixelRatioF();
|
||||
|
||||
QPixmap new_icon = QPixmap(icon.size() * dpr);
|
||||
new_icon.setDevicePixelRatio(dpr);
|
||||
|
@ -542,7 +542,7 @@ void trophy_manager_dialog::ResizeTrophyIcons()
|
|||
return;
|
||||
|
||||
const int db_pos = m_game_combo->currentData().toInt();
|
||||
const int dpr = devicePixelRatio();
|
||||
const qreal dpr = devicePixelRatioF();
|
||||
const int new_height = m_icon_height * dpr;
|
||||
|
||||
QList<int> indices;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue