mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-21 05:37:52 -06:00
OSX specific: GalleryDialog: Fixed scale of the default icon
This commit is contained in:
parent
5bd14cf83a
commit
0092c448b8
1 changed files with 5 additions and 1 deletions
|
@ -206,7 +206,11 @@ static void add_lock(wxImage& image)
|
||||||
|
|
||||||
static void add_default_image(wxImageList* img_list, bool is_system)
|
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) {
|
if (is_system) {
|
||||||
wxImage image = bmp.ConvertToImage();
|
wxImage image = bmp.ConvertToImage();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue