-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clear warnings when loading Dagestan and Louisiana flags #2319
Conversation
0714ee6
to
421a913
Compare
hm... not sure this fixes it...
|
Which tileset are you using? |
I'm not even in game yet |
It probably says |
My Fedora 40 workstation is running libpng 12 |
The very next line after the second "invalid" shows this message
So it still seems to be before tileset selection |
Dagestan flags were causing "libpng warning: bKGD: invalid" to be shown by the client. Produce a valid PNG with ImageMagick. Closes longturn#2291.
421a913
to
15f859f
Compare
Dagestan flags are now the only files causing the warnings for me (Louisiana has meanwhile been modified). I updated the PR accordingly. If you still see warnings could you apply the following patch and report the file names? diff --git a/client/tileset/sprite.cpp b/client/tileset/sprite.cpp
index d377e19fda..14d8f549e6 100644
--- a/client/tileset/sprite.cpp
+++ b/client/tileset/sprite.cpp
@@ -29,6 +29,7 @@ QPixmap *load_gfxfile(const char *filename)
if (QPixmapCache::find(QString(filename), entire)) {
return entire;
}
+ qCritical() << "Reading file" << filename;
entire->load(QString(filename));
QPixmapCache::insert(QString(filename), *entire);
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great.
libpng was complaining about "bKGD: invalid". Not sure what this means, but loading and saving with imagemagick fixed the issue.
Closes #2291.