mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-10-11 14:22:54 +02:00
Follow-up of c370bb7141 -> Do not force even size of toolbars icon textures
This commit is contained in:
1 parent
90741c993d
commit
8728f192c6
2 files changed
+6
-6
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user