Discarded rescale for SplashScreen.

There is no need to rescale the SplashScreen after a81e0d83c1
This commit is contained in:
YuSanka 2022-07-28 14:12:18 +02:00 committed by Lukas Matena
parent 562d991332
commit 6806ec02c7

View File

@ -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();