mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 19:33:47 +00:00
Bitmaps: Fix: Use scaling factor on Mac only
This commit is contained in:
@@ -426,7 +426,12 @@ wxBitmap create_scaled_bitmap(wxWindow *win, const std::string& bmp_name_in, con
|
|||||||
{
|
{
|
||||||
static Slic3r::GUI::BitmapCache cache;
|
static Slic3r::GUI::BitmapCache cache;
|
||||||
|
|
||||||
|
#ifdef __APPLE__
|
||||||
const float scale_factor = win != nullptr ? win->GetContentScaleFactor() : 1.0f;
|
const float scale_factor = win != nullptr ? win->GetContentScaleFactor() : 1.0f;
|
||||||
|
#else
|
||||||
|
(void)(win);
|
||||||
|
const float scale_factor = 1.0f;
|
||||||
|
#endif
|
||||||
|
|
||||||
unsigned int height, width = height = 0;
|
unsigned int height, width = height = 0;
|
||||||
unsigned int& scale_base = is_horizontal ? width : height;
|
unsigned int& scale_base = is_horizontal ? width : height;
|
||||||
|
|||||||
Reference in New Issue
Block a user