diff options
author | Enrico Turri <enricoturri@seznam.cz> | 2019-12-05 16:43:18 +0300 |
---|---|---|
committer | Enrico Turri <enricoturri@seznam.cz> | 2019-12-05 16:47:48 +0300 |
commit | 16d852df250d3b885a1e077a253c39846ed47df4 (patch) | |
tree | 2f7f2a793bc4a2dc77aeb8f7a834c2258e68d5d8 | |
parent | 7af07fd912ebac22d61e0670a991a9e7cb2367ea (diff) |
Follow-up of c370bb7141360776f603c9eec679e8d276dda56b -> Do not force even size of toolbars icon textures
-rw-r--r-- | src/slic3r/GUI/GLToolbar.cpp | 6 | ||||
-rw-r--r-- | src/slic3r/GUI/Gizmos/GLGizmosManager.cpp | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/slic3r/GUI/GLToolbar.cpp b/src/slic3r/GUI/GLToolbar.cpp index c35d1afe4..7801cede7 100644 --- a/src/slic3r/GUI/GLToolbar.cpp +++ b/src/slic3r/GUI/GLToolbar.cpp @@ -1208,9 +1208,9 @@ bool GLToolbar::generate_icons_texture() const } unsigned int sprite_size_px = (unsigned int)(m_layout.icons_size * m_layout.scale); - // force even size - if (sprite_size_px % 2 != 0) - sprite_size_px += 1; +// // force even size +// if (sprite_size_px % 2 != 0) +// sprite_size_px += 1; bool res = m_icons_texture.load_from_svg_files_as_sprites_array(filenames, states, sprite_size_px, false); if (res) diff --git a/src/slic3r/GUI/Gizmos/GLGizmosManager.cpp b/src/slic3r/GUI/Gizmos/GLGizmosManager.cpp index 40362349b..c7d3e2b4e 100644 --- a/src/slic3r/GUI/Gizmos/GLGizmosManager.cpp +++ b/src/slic3r/GUI/Gizmos/GLGizmosManager.cpp @@ -1063,9 +1063,9 @@ bool GLGizmosManager::generate_icons_texture() const states.push_back(std::make_pair(0, true)); unsigned int sprite_size_px = (unsigned int)(m_overlay_icons_size * m_overlay_scale); - // force even size - if (sprite_size_px % 2 != 0) - sprite_size_px += 1; +// // force even size +// if (sprite_size_px % 2 != 0) +// sprite_size_px += 1; bool res = m_icons_texture.load_from_svg_files_as_sprites_array(filenames, states, sprite_size_px, false); if (res) |