mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-13 22:35:51 +08:00
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);
|
int init_dpi = get_dpi_for_window(this);
|
||||||
this->SetPosition(pos);
|
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();
|
this->CenterOnScreen();
|
||||||
int new_dpi = get_dpi_for_window(this);
|
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;
|
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 texts and scale fonts
|
||||||
init_constant_text();
|
init_constant_text();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user