Skip to content

Commit 5d567f4

Browse files
author
beryll1um
committed
fix(Icons): application icons container class method fixed
1 parent b521da4 commit 5d567f4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/application/window/icons/icons.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ Icons::~Icons() {
3131
}
3232

3333
void Icons::add_icon(const string &icon) {
34-
GLFWimage image = { .pixels = stbi_load(icon.c_str(), &image.width, &image.height, 0, 4) };
34+
GLFWimage image;
35+
image.pixels = stbi_load(icon.c_str(), &image.width, &image.height, 0, 4);
3536
_images->handle.push_back(image);
3637
}
3738

0 commit comments

Comments
 (0)