mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 08:47:52 -06:00
Fix of Settings scaling when they are placed in non-modal Dialog
This commit is contained in:
parent
0f0c9a0726
commit
c49221c621
4 changed files with 19 additions and 4 deletions
|
@ -218,7 +218,7 @@ private:
|
|||
void rescale(const wxRect &suggested_rect)
|
||||
{
|
||||
this->Freeze();
|
||||
|
||||
/*
|
||||
#if wxVERSION_EQUAL_OR_GREATER_THAN(3,1,3)
|
||||
if (m_force_rescale) {
|
||||
#endif // wxVERSION_EQUAL_OR_GREATER_THAN
|
||||
|
@ -230,6 +230,13 @@ private:
|
|||
m_force_rescale = false;
|
||||
}
|
||||
#endif // wxVERSION_EQUAL_OR_GREATER_THAN
|
||||
*/
|
||||
#if !wxVERSION_EQUAL_OR_GREATER_THAN(3,1,3)
|
||||
// rescale fonts of all controls
|
||||
scale_controls_fonts(this, m_new_font_point_size);
|
||||
// rescale current window font
|
||||
scale_win_font(this, m_new_font_point_size);
|
||||
#endif // wxVERSION_EQUAL_OR_GREATER_THAN
|
||||
|
||||
// set normal application font as a current window font
|
||||
m_normal_font = this->GetFont();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue