summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-01-01 01:13:40 +0100
committerLioncash <mathew1800@gmail.com>2019-01-01 01:14:48 +0100
commitcd8924520c14068232df6ff0cc91bb604768cae7 (patch)
treeb272ba56b67b1970ffb6ce2a04084ec90d6fd140
parentyuzu/config: Silence truncation warnings (diff)
downloadyuzu-cd8924520c14068232df6ff0cc91bb604768cae7.tar
yuzu-cd8924520c14068232df6ff0cc91bb604768cae7.tar.gz
yuzu-cd8924520c14068232df6ff0cc91bb604768cae7.tar.bz2
yuzu-cd8924520c14068232df6ff0cc91bb604768cae7.tar.lz
yuzu-cd8924520c14068232df6ff0cc91bb604768cae7.tar.xz
yuzu-cd8924520c14068232df6ff0cc91bb604768cae7.tar.zst
yuzu-cd8924520c14068232df6ff0cc91bb604768cae7.zip
-rw-r--r--src/yuzu/configuration/configure_per_general.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/yuzu/configuration/configure_per_general.cpp b/src/yuzu/configuration/configure_per_general.cpp
index dffaba5ed..e13d2eac8 100644
--- a/src/yuzu/configuration/configure_per_general.cpp
+++ b/src/yuzu/configuration/configure_per_general.cpp
@@ -120,7 +120,7 @@ void ConfigurePerGameGeneral::loadConfiguration() {
QPixmap map;
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(),
Qt::IgnoreAspectRatio, Qt::SmoothTransformation));
@@ -130,7 +130,7 @@ void ConfigurePerGameGeneral::loadConfiguration() {
scene->clear();
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(),
Qt::IgnoreAspectRatio, Qt::SmoothTransformation));