mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
Merge pull request #13126 from jordan-woyak/no-big-banner
DolphinQt: Restrict size of banner image in game properties info tab.
This commit is contained in:
@ -18,6 +18,7 @@
|
||||
#include "DiscIO/Blob.h"
|
||||
#include "DiscIO/Enums.h"
|
||||
#include "DiscIO/Volume.h"
|
||||
#include "DiscIO/WiiSaveBanner.h"
|
||||
|
||||
#include "DolphinQt/QtUtils/DolphinFileDialog.h"
|
||||
#include "DolphinQt/QtUtils/ImageConverter.h"
|
||||
@ -179,7 +180,9 @@ QWidget* InfoWidget::CreateBannerGraphic(const QPixmap& image)
|
||||
QHBoxLayout* layout = new QHBoxLayout();
|
||||
|
||||
QLabel* banner = new QLabel();
|
||||
banner->setPixmap(image);
|
||||
banner->setPixmap(image.scaled(image.size().boundedTo(
|
||||
QSize{DiscIO::WiiSaveBanner::BANNER_WIDTH, DiscIO::WiiSaveBanner::BANNER_HEIGHT})));
|
||||
|
||||
QPushButton* save = new QPushButton(tr("Save as..."));
|
||||
connect(save, &QPushButton::clicked, this, &InfoWidget::SaveBanner);
|
||||
|
||||
|
Reference in New Issue
Block a user