aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-08-05 04:24:12 +0200
committerdec05eba <dec05eba@protonmail.com>2024-08-05 04:24:12 +0200
commit33118fd243ee60936f7a4090045154575d7e7330 (patch)
tree7dbf8748113445dc42b4e52625a4e268b180b322
parentc8241a2424f7ba6d38eee5b4fe042cf7c8fd7df8 (diff)
Fix position being incorrect if icon loading fails
m---------depends/mglpp0
-rw-r--r--src/main.cpp3
2 files changed, 1 insertions, 2 deletions
diff --git a/depends/mglpp b/depends/mglpp
-Subproject d0e8c89aecdbf6c26883863f310a0a8ffaa2940
+Subproject 212ca50d0fe55a658528f190b679142206ac2a0
diff --git a/src/main.cpp b/src/main.cpp
index b9e81a9..19d75a0 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -228,8 +228,7 @@ int main(int argc, char **argv) {
mgl::Texture logo_texture;
if(icon_filepath) {
if(!logo_texture.load_from_file(icon_filepath, {false, false, true})) {
- fprintf(stderr, "error: failed to load icon\n");
- return 1;
+ fprintf(stderr, "Warning: failed to load icon\n");
}
}