mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-08-10 11:37:37 +00:00
Best effort for pixel perfect icon rendering (#4552)
* Make sure all icons & toolbars have sizes & locations in whole number pixels, so icons won't be blurry * Make every size even so it scales well on screen
This commit is contained in:
@@ -1101,10 +1101,10 @@ void GLGizmosManager::do_render_overlay() const
|
||||
//float space_width = GLGizmosManager::Default_Icons_Size * wxGetApp().toolbar_icon_scale();
|
||||
//float zoomed_top_x = 0.5f *(cnv_w + main_toolbar_width - 2 * space_width - width) * inv_zoom;
|
||||
|
||||
float main_toolbar_left = -0.5f * cnv_w + m_parent.get_main_toolbar_offset();
|
||||
int main_toolbar_left = -cnv_w + m_parent.get_main_toolbar_offset() * 2;
|
||||
//float zoomed_top_x = 0.5f *(main_toolbar_width + collapse_width - width - assemble_view_width) * inv_zoom;
|
||||
top_x = main_toolbar_left + main_toolbar_width + separator_width / 2;
|
||||
top_x = top_x * inv_cnv_w * 2;
|
||||
top_x = main_toolbar_left + main_toolbar_width * 2 + separator_width;
|
||||
top_x = top_x * inv_cnv_w;
|
||||
}
|
||||
float top_y = 1.0f;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user