mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-23 22:54:08 -06:00
Follow-up to 19b52da260
: Fixed scale for view toolbar on HDPI (GTK3 specific)
This commit is contained in:
parent
d791720b5e
commit
240dc8b697
1 changed files with 10 additions and 8 deletions
|
@ -5331,16 +5331,18 @@ void GLCanvas3D::_render_view_toolbar() const
|
||||||
{
|
{
|
||||||
GLToolbar& view_toolbar = wxGetApp().plater()->get_view_toolbar();
|
GLToolbar& view_toolbar = wxGetApp().plater()->get_view_toolbar();
|
||||||
|
|
||||||
#if __APPLE__
|
#if ENABLE_RETINA_GL
|
||||||
// m_view_toolbar.set_scale(m_retina_helper->get_scale_factor());
|
|
||||||
const float scale = m_retina_helper->get_scale_factor() * wxGetApp().toolbar_icon_scale();
|
const float scale = m_retina_helper->get_scale_factor() * wxGetApp().toolbar_icon_scale();
|
||||||
view_toolbar.set_scale(scale); //! #ys_FIXME_experiment
|
#if __APPLE__
|
||||||
#else
|
view_toolbar.set_scale(scale);
|
||||||
// m_view_toolbar.set_scale(m_canvas->GetContentScaleFactor());
|
#else // if GTK3
|
||||||
// m_view_toolbar.set_scale(wxGetApp().em_unit()*0.1f);
|
const float size = int(GLGizmosManager::Default_Icons_Size * scale);
|
||||||
const float size = int(GLGizmosManager::Default_Icons_Size * wxGetApp().toolbar_icon_scale());
|
view_toolbar.set_icons_size(size);
|
||||||
view_toolbar.set_icons_size(size); //! #ys_FIXME_experiment
|
|
||||||
#endif // __APPLE__
|
#endif // __APPLE__
|
||||||
|
#else
|
||||||
|
const float size = int(GLGizmosManager::Default_Icons_Size * wxGetApp().toolbar_icon_scale());
|
||||||
|
view_toolbar.set_icons_size(size);
|
||||||
|
#endif // ENABLE_RETINA_GL
|
||||||
|
|
||||||
Size cnv_size = get_canvas_size();
|
Size cnv_size = get_canvas_size();
|
||||||
float inv_zoom = (float)wxGetApp().plater()->get_camera().get_inv_zoom();
|
float inv_zoom = (float)wxGetApp().plater()->get_camera().get_inv_zoom();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue