Fixed that the flag on avatar image could be to big.

This commit is contained in:
LevelX2 2016-02-27 12:33:08 +01:00
parent ad4b68dcb5
commit f87c5bbbec
2 changed files with 17 additions and 2 deletions

View file

@ -287,7 +287,7 @@ public class PlayerPanelExt extends javax.swing.JPanel {
avatar.setText(this.player.getName());
if (!player.getUserData().getFlagName().equals(flagName)) {
flagName = player.getUserData().getFlagName();
this.avatar.setTopTextImage(CountryUtil.getCountryFlagIcon(flagName).getImage());
this.avatar.setTopTextImage(CountryUtil.getCountryFlagIconSize(flagName, 11).getImage());
}
// TODO: Add the wins to the tooltiptext of the avatar
String countryname = CountryUtil.getCountryName(flagName);