mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-30 10:42:47 +01:00
yuzu/configure_general: Silence truncation warnings in loadConfiguration()
The QPixmap API expects an unsigned int.
This commit is contained in:
parent
f5f35caf20
commit
cd8924520c
1 changed files with 2 additions and 2 deletions
|
@ -120,7 +120,7 @@ void ConfigurePerGameGeneral::loadConfiguration() {
|
||||||
|
|
||||||
QPixmap map;
|
QPixmap map;
|
||||||
const auto bytes = control.second->ReadAllBytes();
|
const auto bytes = control.second->ReadAllBytes();
|
||||||
map.loadFromData(bytes.data(), bytes.size());
|
map.loadFromData(bytes.data(), static_cast<u32>(bytes.size()));
|
||||||
|
|
||||||
scene->addPixmap(map.scaled(ui->icon_view->width(), ui->icon_view->height(),
|
scene->addPixmap(map.scaled(ui->icon_view->width(), ui->icon_view->height(),
|
||||||
Qt::IgnoreAspectRatio, Qt::SmoothTransformation));
|
Qt::IgnoreAspectRatio, Qt::SmoothTransformation));
|
||||||
|
@ -130,7 +130,7 @@ void ConfigurePerGameGeneral::loadConfiguration() {
|
||||||
scene->clear();
|
scene->clear();
|
||||||
|
|
||||||
QPixmap map;
|
QPixmap map;
|
||||||
map.loadFromData(bytes.data(), bytes.size());
|
map.loadFromData(bytes.data(), static_cast<u32>(bytes.size()));
|
||||||
|
|
||||||
scene->addPixmap(map.scaled(ui->icon_view->width(), ui->icon_view->height(),
|
scene->addPixmap(map.scaled(ui->icon_view->width(), ui->icon_view->height(),
|
||||||
Qt::IgnoreAspectRatio, Qt::SmoothTransformation));
|
Qt::IgnoreAspectRatio, Qt::SmoothTransformation));
|
||||||
|
|
Loading…
Reference in a new issue