Discarded rescale for SplashScreen.
There is no need to rescale the SplashScreen after a81e0d83c1
This commit is contained in:
parent
562d991332
commit
6806ec02c7
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user