From 0092c448b8cde48da19d427d9cd4fc9c07f5f87f Mon Sep 17 00:00:00 2001 From: YuSanka Date: Tue, 3 Aug 2021 11:28:31 +0200 Subject: [PATCH] OSX specific: GalleryDialog: Fixed scale of the default icon --- src/slic3r/GUI/GalleryDialog.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/slic3r/GUI/GalleryDialog.cpp b/src/slic3r/GUI/GalleryDialog.cpp index c4d46341be..5429e2658e 100644 --- a/src/slic3r/GUI/GalleryDialog.cpp +++ b/src/slic3r/GUI/GalleryDialog.cpp @@ -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();