OSX specific: GalleryDialog: Fixed scale of the default icon

This commit is contained in:
YuSanka
2021-08-03 11:28:31 +02:00
parent 09c18103b7
commit 4b7614a88d

View File

@@ -206,7 +206,11 @@ static void add_lock(wxImage& image)
static void add_default_image(wxImageList* img_list, bool is_system)
{
wxBitmap bmp = create_scaled_bitmap("cog", nullptr, IMG_PX_CNT, true);
int sz = IMG_PX_CNT;
#ifdef __APPLE__
sz /= mac_max_scaling_factor();
#endif
wxBitmap bmp = create_scaled_bitmap("cog", nullptr, sz, true);
if (is_system) {
wxImage image = bmp.ConvertToImage();