From 33118fd243ee60936f7a4090045154575d7e7330 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 5 Aug 2024 04:24:12 +0200 Subject: Fix position being incorrect if icon loading fails --- depends/mglpp | 2 +- src/main.cpp | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/depends/mglpp b/depends/mglpp index d0e8c89..212ca50 160000 --- a/depends/mglpp +++ b/depends/mglpp @@ -1 +1 @@ -Subproject commit d0e8c89aecdbf6c26883863f310a0a8ffaa29403 +Subproject commit 212ca50d0fe55a658528f190b679142206ac2a01 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"); } } -- cgit v1.2.3