gui: Fix image list scaling

The listbook images aren't rescaled unless the embedded icons are used.
Make sure all the images are correctly rescaled.
This commit is contained in:
Jonathan Li 2015-09-07 18:28:33 +01:00
parent 5cf94e5a15
commit 59ffed85ba
1 changed files with 6 additions and 5 deletions

View File

@ -177,7 +177,8 @@ wxImageList& Pcsx2App::GetImgList_Config()
ScopedPtr<wxImageList>& images( GetResourceCache().ConfigImages );
if( !images )
{
images = new wxImageList(32, 32);
int image_size = g_Conf->Listbook_ImageSize;
images = new wxImageList(image_size, image_size);
wxFileName mess;
bool useTheme = (g_Conf->DeskTheme != L"default");
@ -200,10 +201,10 @@ wxImageList& Pcsx2App::GetImgList_Config()
#undef FancyLoadMacro
#define FancyLoadMacro( name ) \
{ \
EmbeddedImage<res_ConfigIcon_##name> temp( g_Conf->Listbook_ImageSize, g_Conf->Listbook_ImageSize ); \
m_Resources->ImageId.Config.name = images->Add( LoadImageAny( \
img, useTheme, mess, L"ConfigIcon_" wxT(#name), temp ) \
); \
EmbeddedImage<res_ConfigIcon_##name> temp; \
LoadImageAny(img, useTheme, mess, L"ConfigIcon_" wxT(#name), temp); \
img.Rescale(image_size, image_size, wxIMAGE_QUALITY_HIGH); \
m_Resources->ImageId.Config.name = images->Add(img); \
}
FancyLoadMacro( Paths );