From d399ebacc9407ca4ae423c4c0651e9cf7c101a42 Mon Sep 17 00:00:00 2001 From: Vojtech Kral Date: Tue, 9 Apr 2019 17:39:04 +0200 Subject: [PATCH] Bitmaps: Fix: Use scaling factor on Mac only --- src/slic3r/GUI/wxExtensions.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/slic3r/GUI/wxExtensions.cpp b/src/slic3r/GUI/wxExtensions.cpp index 100b02253f..7f5b5ad9c4 100644 --- a/src/slic3r/GUI/wxExtensions.cpp +++ b/src/slic3r/GUI/wxExtensions.cpp @@ -426,7 +426,12 @@ wxBitmap create_scaled_bitmap(wxWindow *win, const std::string& bmp_name_in, con { static Slic3r::GUI::BitmapCache cache; +#ifdef __APPLE__ 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& scale_base = is_horizontal ? width : height;