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

Fix pressed buttons background #4748

Merged
merged 16 commits into from
Dec 20, 2021
Merged
Prev Previous commit
Next Next commit
fix corners of pressed buttons on scenario info dialog
  • Loading branch information
a1exsh committed Dec 10, 2021
commit 95d8e0171ddd8ff9975f1e57b67823e2d4da5afd
11 changes: 10 additions & 1 deletion src/fheroes2/agg/agg_image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1569,11 +1569,20 @@ namespace fheroes2
case ICN::RECRUIT: {
LoadOriginalICN( id );
if ( _icnVsSprite[id].size() >= 10 ) {
// fix transparent corners on OKAY button
// fix transparent corners on released OKAY button
CopyTransformLayer( _icnVsSprite[id][9], _icnVsSprite[id][8] );
}
return true;
}
case ICN::NGEXTRA: {
LoadOriginalICN( id );
if ( _icnVsSprite[id].size() >= 70 ) {
// fix transparent corners on pressed OKAY and CANCEL buttons
CopyTransformLayer( _icnVsSprite[id][66], _icnVsSprite[id][67] );
CopyTransformLayer( _icnVsSprite[id][68], _icnVsSprite[id][69] );
}
return true;
}
case ICN::HSBTNS: {
LoadOriginalICN( id );
if ( _icnVsSprite[id].size() >= 4 ) {
Expand Down