From fa00719bcc5a882a54861381d8e731692dc3992f Mon Sep 17 00:00:00 2001 From: YuSanka Date: Mon, 13 May 2019 15:57:26 +0200 Subject: [PATCH] Fixed input parameter for ConvertToGreyscale() --- src/slic3r/GUI/wxExtensions.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/slic3r/GUI/wxExtensions.cpp b/src/slic3r/GUI/wxExtensions.cpp index a9cc3034e..049f81ac4 100644 --- a/src/slic3r/GUI/wxExtensions.cpp +++ b/src/slic3r/GUI/wxExtensions.cpp @@ -61,8 +61,8 @@ void enable_menu_item(wxUpdateUIEvent& evt, std::function const cb_condi { const wxBitmap& item_icon = create_scaled_bitmap(nullptr, it->second); if (item_icon.IsOk()) { - static const wxBitmap disabled_icon = item_icon.ConvertToImage().ConvertToGreyscale(0.5, 0.5, 0.5); - item->SetBitmap(enable ? item_icon : disabled_icon); + double g = 0.6; + item->SetBitmap(enable ? item_icon : item_icon.ConvertToImage().ConvertToGreyscale(g, g, g)); } } #endif // __WXOSX__