Skip to content

Commit

Permalink
change reference
Browse files Browse the repository at this point in the history
  • Loading branch information
zenseii committed Feb 4, 2025
1 parent a863993 commit dae8d83
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/fheroes2/agg/agg_image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1246,7 +1246,9 @@ namespace
_icnVsSprite[id][1] = fheroes2::AGG::GetICN( buttonIcnID, icnIndex.y );
if ( id == ICN::BUTTON_CAMPAIGN_GAME ) {
// Fix the disabled state.
fheroes2::Image common = fheroes2::ExtractCommonPattern( { &_icnVsSprite[id][0], &_icnVsSprite[id][1] } );
const fheroes2::Sprite & released = fheroes2::AGG::GetICN( buttonIcnID, icnIndex.x );
const fheroes2::Sprite & pressed = fheroes2::AGG::GetICN( buttonIcnID, icnIndex.y );
fheroes2::Image common = fheroes2::ExtractCommonPattern( { &released, &pressed } );
common = fheroes2::FilterOnePixelNoise( common );
common = fheroes2::FilterOnePixelNoise( common );
common = fheroes2::FilterOnePixelNoise( common );
Expand Down

0 comments on commit dae8d83

Please sign in to comment.