mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-11 01:08:39 +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
|
@ -1618,7 +1618,7 @@ void game_list_frame::BatchRemoveShaderCaches()
|
|||
|
||||
QPixmap game_list_frame::PaintedPixmap(const QPixmap& icon, bool paint_config_icon, bool paint_pad_config_icon, const QColor& compatibility_color)
|
||||
{
|
||||
const int device_pixel_ratio = devicePixelRatio();
|
||||
const qreal device_pixel_ratio = devicePixelRatioF();
|
||||
const QSize original_size = icon.size();
|
||||
|
||||
QPixmap canvas = QPixmap(original_size * device_pixel_ratio);
|
||||
|
@ -1921,7 +1921,7 @@ int game_list_frame::PopulateGameList()
|
|||
compat_item->setToolTip(game->compat.tooltip);
|
||||
if (!game->compat.color.isEmpty())
|
||||
{
|
||||
compat_item->setData(Qt::DecorationRole, compat_pixmap(game->compat.color, devicePixelRatio() * 2));
|
||||
compat_item->setData(Qt::DecorationRole, compat_pixmap(game->compat.color, devicePixelRatioF() * 2));
|
||||
}
|
||||
|
||||
// Version
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue