Skip to content
Snippets Groups Projects
Commit cd892452 authored by Lioncash's avatar Lioncash
Browse files

yuzu/configure_general: Silence truncation warnings in loadConfiguration()

The QPixmap API expects an unsigned int.
parent f5f35caf
No related branches found
No related tags found
No related merge requests found
...@@ -120,7 +120,7 @@ void ConfigurePerGameGeneral::loadConfiguration() { ...@@ -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() { ...@@ -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));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment