From 6806ec02c7bd4afbf4a631c98f7901825c2f168b Mon Sep 17 00:00:00 2001 From: YuSanka Date: Thu, 28 Jul 2022 14:12:18 +0200 Subject: [PATCH] Discarded rescale for SplashScreen. There is no need to rescale the SplashScreen after https://github.com/wxWidgets/wxWidgets/commit/a81e0d83c1a6a274a9349320aa09623b59c69991 --- src/slic3r/GUI/GUI_App.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/slic3r/GUI/GUI_App.cpp b/src/slic3r/GUI/GUI_App.cpp index 69a42bf035..95ef05c450 100644 --- a/src/slic3r/GUI/GUI_App.cpp +++ b/src/slic3r/GUI/GUI_App.cpp @@ -125,13 +125,16 @@ public: int init_dpi = get_dpi_for_window(this); this->SetPosition(pos); + // The size of the SplashScreen can be hanged after its moving to another display + // So, update it from a bitmap size + this->SetClientSize(bitmap.GetWidth(), bitmap.GetHeight()); this->CenterOnScreen(); int new_dpi = get_dpi_for_window(this); - m_scale = (float)(new_dpi) / (float)(init_dpi); +// m_scale = (float)(new_dpi) / (float)(init_dpi); m_main_bitmap = bitmap; - scale_bitmap(m_main_bitmap, m_scale); +// scale_bitmap(m_main_bitmap, m_scale); // init constant texts and scale fonts init_constant_text();