mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 22:29:39 -06:00
Reimplement custom PNG banners in game list
Fixes https://bugs.dolphin-emu.org/issues/10938 and makes PNG banners available in DolphinQt2 for the first time.
This commit is contained in:
@ -16,13 +16,13 @@
|
||||
|
||||
namespace DiscIO
|
||||
{
|
||||
constexpr unsigned int BANNER_WIDTH = 192;
|
||||
constexpr unsigned int BANNER_HEIGHT = 64;
|
||||
constexpr unsigned int BANNER_SIZE = BANNER_WIDTH * BANNER_HEIGHT * 2;
|
||||
constexpr u32 BANNER_WIDTH = 192;
|
||||
constexpr u32 BANNER_HEIGHT = 64;
|
||||
constexpr u32 BANNER_SIZE = BANNER_WIDTH * BANNER_HEIGHT * 2;
|
||||
|
||||
constexpr unsigned int ICON_WIDTH = 48;
|
||||
constexpr unsigned int ICON_HEIGHT = 48;
|
||||
constexpr unsigned int ICON_SIZE = ICON_WIDTH * ICON_HEIGHT * 2;
|
||||
constexpr u32 ICON_WIDTH = 48;
|
||||
constexpr u32 ICON_HEIGHT = 48;
|
||||
constexpr u32 ICON_SIZE = ICON_WIDTH * ICON_HEIGHT * 2;
|
||||
|
||||
WiiSaveBanner::WiiSaveBanner(u64 title_id)
|
||||
: WiiSaveBanner(Common::GetTitleDataPath(title_id, Common::FROM_CONFIGURED_ROOT) +
|
||||
@ -55,7 +55,7 @@ std::string WiiSaveBanner::GetDescription() const
|
||||
return UTF16BEToUTF8(m_header.description, ArraySize(m_header.description));
|
||||
}
|
||||
|
||||
std::vector<u32> WiiSaveBanner::GetBanner(int* width, int* height) const
|
||||
std::vector<u32> WiiSaveBanner::GetBanner(u32* width, u32* height) const
|
||||
{
|
||||
*width = 0;
|
||||
*height = 0;
|
||||
|
Reference in New Issue
Block a user