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);
|
||||
// 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)
|
||||
|
|
|
@ -956,9 +956,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)
|
||||
|
|
Loading…
Reference in a new issue