Skip to content
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

Draft
wants to merge 10 commits into
base: master
Choose a base branch
from
7 changes: 7 additions & 0 deletions src/fheroes2/agg/agg_image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4126,10 +4126,17 @@ namespace fheroes2
const Sprite & originalImage = GetICN( ICN::ARTIFACT, 83 );
SubpixelResize( originalImage, _icnVsSprite[id][82] );
}
else if ( _icnVsSprite[id].size() > 63 ) {
shprotru marked this conversation as resolved.
Show resolved Hide resolved
// This fixes "Golden Bow" (#63) small artifact icon glowing yellow pixel
Copy( _icnVsSprite[id][63], 12, 17, _icnVsSprite[id][63], 16, 12, 1, 1 );
}
return true;
case ICN::ARTIFACT:
LoadOriginalICN( id );
if ( _icnVsSprite[id].size() > 99 ) {
// This fixes "Golden Bow" (#64) large artifact icon glowing yellow pixel
Copy( _icnVsSprite[id][64], 35, 24, _icnVsSprite[id][64], 56, 12, 1, 1 );

// This fixes "Arm of the Martyr" (#88) and " Sphere of Negation" (#99) artifacts rendering which initially has some incorrect transparent pixels.
for ( const int32_t index : { 88, 99 } ) {
Sprite & originalImage = _icnVsSprite[id][index];
Expand Down
Loading