mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 08:47:52 -06:00
Follow-up of c370bb7141
-> Do not force even size of toolbars icon textures
This commit is contained in:
parent
90741c993d
commit
8728f192c6
2 changed files with 6 additions and 6 deletions
|
@ -1195,9 +1195,9 @@ bool GLToolbar::generate_icons_texture() const
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned int sprite_size_px = (unsigned int)(m_layout.icons_size * m_layout.scale);
|
unsigned int sprite_size_px = (unsigned int)(m_layout.icons_size * m_layout.scale);
|
||||||
// force even size
|
// // force even size
|
||||||
if (sprite_size_px % 2 != 0)
|
// if (sprite_size_px % 2 != 0)
|
||||||
sprite_size_px += 1;
|
// sprite_size_px += 1;
|
||||||
|
|
||||||
bool res = m_icons_texture.load_from_svg_files_as_sprites_array(filenames, states, sprite_size_px, false);
|
bool res = m_icons_texture.load_from_svg_files_as_sprites_array(filenames, states, sprite_size_px, false);
|
||||||
if (res)
|
if (res)
|
||||||
|
|
|
@ -956,9 +956,9 @@ bool GLGizmosManager::generate_icons_texture() const
|
||||||
states.push_back(std::make_pair(0, true));
|
states.push_back(std::make_pair(0, true));
|
||||||
|
|
||||||
unsigned int sprite_size_px = (unsigned int)(m_overlay_icons_size * m_overlay_scale);
|
unsigned int sprite_size_px = (unsigned int)(m_overlay_icons_size * m_overlay_scale);
|
||||||
// force even size
|
// // force even size
|
||||||
if (sprite_size_px % 2 != 0)
|
// if (sprite_size_px % 2 != 0)
|
||||||
sprite_size_px += 1;
|
// sprite_size_px += 1;
|
||||||
|
|
||||||
bool res = m_icons_texture.load_from_svg_files_as_sprites_array(filenames, states, sprite_size_px, false);
|
bool res = m_icons_texture.load_from_svg_files_as_sprites_array(filenames, states, sprite_size_px, false);
|
||||||
if (res)
|
if (res)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue