-
-
Notifications
You must be signed in to change notification settings - Fork 368
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
Fixing Golden bow sprite glowing pixels #8542
base: master
Are you sure you want to change the base?
Conversation
Please, help me to find the place where the small artifact icons should be processed. |
Hi, @shprotru. Could you please leave an image, preferably large, so that we can easily see the change done in this PR? |
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.
Hi @shprotru , I left one suggestion. You also need to modify ICN::ARTFX
and ICN::OBJNARTI
resources.
src/fheroes2/agg/agg_image.cpp
Outdated
@@ -3911,6 +3911,11 @@ namespace fheroes2 | |||
case ICN::ARTIFACT: | |||
LoadOriginalICN( id ); | |||
if ( _icnVsSprite[id].size() > 99 ) { | |||
// This fixes "Golden Bow" (#64) large artifact icon glowing yellow pixel | |||
if ( _icnVsSprite[id][64].width() == 64 && _icnVsSprite[id][64].height() == 64 ) { |
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.
This check is not needed as Copy function will do the same.
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.
done
Hi @ihhub ! I added |
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.
Hi, @shprotru.
I've checked this fix and all is OK - the glowing pixels are properly replaced with the correct ones:
Could you please, sync this PR with a master branch: we've added extra artifact image for Editor recently and used case ICN::ARTFX:
in agg_image.cpp in the 4121 line.
And then updete this PR: the fix from current lines 3931-3934 should be moved the recently added case ICN::ARTFX:
to properly merge this PR.
Co-authored-by: Sergei Ivanov (Districh) <113276641+Districh-ru@users.noreply.github.com>
fix #8520
after this fix:
vokoscreenNG-2024-04-06_00-08-20.mp4