From 7f83f460e10885dc79dd985c24051a5a97aa054e Mon Sep 17 00:00:00 2001 From: Ocraftyone Date: Wed, 22 Nov 2023 06:00:55 -0500 Subject: [PATCH] fix up some more todos in wxExtensions --- src/slic3r/GUI/wxExtensions.cpp | 8 -------- src/slic3r/GUI/wxExtensions.hpp | 2 -- 2 files changed, 10 deletions(-) diff --git a/src/slic3r/GUI/wxExtensions.cpp b/src/slic3r/GUI/wxExtensions.cpp index 58311058a9..1ba1a7f442 100644 --- a/src/slic3r/GUI/wxExtensions.cpp +++ b/src/slic3r/GUI/wxExtensions.cpp @@ -827,7 +827,6 @@ void ModeSizer::set_items_border(int border) void ModeSizer::sys_color_changed() { -// this->SetHGap(std::lround(m_hgap_unscaled * em_unit(m_parent))); //OcraftyoneTODO: LEGACY (PS removed) for (size_t m = 0; m < m_mode_btns.size(); m++) m_mode_btns[m]->msw_rescale(); } @@ -1006,13 +1005,6 @@ BlinkingBitmap::BlinkingBitmap(wxWindow* parent, const std::string& icon_name) : bmp = ScalableBitmap(parent, icon_name); } -void BlinkingBitmap::msw_rescale() //OcraftyoneTODO: removed by ps -{ - bmp.sys_color_changed(); - this->SetSize(bmp.GetSize()); - this->SetMinSize(bmp.GetSize()); -} - void BlinkingBitmap::invalidate() { this->SetBitmap(wxNullBitmap); diff --git a/src/slic3r/GUI/wxExtensions.hpp b/src/slic3r/GUI/wxExtensions.hpp index 67713a6d5f..ae0d0ecda7 100644 --- a/src/slic3r/GUI/wxExtensions.hpp +++ b/src/slic3r/GUI/wxExtensions.hpp @@ -55,7 +55,6 @@ void msw_buttons_rescale(wxDialog* dlg, const int em_unit, const std::vector< int em_unit(wxWindow* win); int mode_icon_px_size(); -wxBitmap create_menu_bitmap(const std::string& bmp_name); //OcraftyoneTODO: LEGACY (PS deleted) wxBitmapBundle* get_bmp_bundle(const std::string& bmp_name, int px_cnt = 16); wxBitmapBundle* get_empty_bmp_bundle(int width, int height); wxBitmapBundle* get_solid_bmp_bundle(int width, int height, const std::string& color); @@ -403,7 +402,6 @@ public: ~BlinkingBitmap() {} - void msw_rescale(); //OcraftyoneTODO: LEGACY (PS deleted) void invalidate(); void activate(); void blink();