Fix case when appear bad loading of icons

This commit is contained in:
Filip Sykala 2022-03-28 11:53:11 +02:00
parent a4b0a9d0f3
commit ae4d8af2c1
2 changed files with 35 additions and 22 deletions

View file

@ -157,7 +157,7 @@ private:
float style_combobox_width = 0.f;
float delete_pos_x = 0.f;
float max_font_name_width = 0.f;
unsigned int icon_width = 0.f;
unsigned int icon_width = 0;
float min_style_image_height = 0.f;
int max_style_image_width = 0.f;
@ -225,7 +225,7 @@ private:
// drawing icons
GLTexture m_icons_texture;
bool init_icons();
void init_icons();
enum class IconType : unsigned {
rename = 0,
erase,