Zoom pas centré
This commit is contained in:
parent
834600c514
commit
5d59d8a151
@ -64,8 +64,8 @@ public class BoutonsMenu extends JComponent{
|
||||
secondPinceau.drawImage(this.img, 5, 5, this.getWidth()-10, this.getHeight()-10, this);
|
||||
secondPinceau.fillRoundRect(5, 5, this.getWidth()-10, this.getHeight()-10, this.getWidth()/100*9, this.getHeight()/100*29);
|
||||
}else{
|
||||
secondPinceau.drawImage(this.img, 0, 0, this.getWidth()-5, this.getHeight()-5, this);
|
||||
secondPinceau.fillRoundRect(0, 0, this.getWidth()-5, this.getHeight()-5, this.getWidth()/100*9, this.getHeight()/100*29);
|
||||
secondPinceau.drawImage(this.img, 0, 0, this.getWidth(), this.getHeight(), this);
|
||||
secondPinceau.fillRoundRect(0, 0, this.getWidth(), this.getHeight(), this.getWidth()/100*9, this.getHeight()/100*29);
|
||||
}
|
||||
secondPinceau.setColor(new Color(255, 255, 255));
|
||||
secondPinceau.setFont(new Font(Font.SANS_SERIF, Font.BOLD, (this.getWidth()/10)));
|
||||
|
Loading…
Reference in New Issue
Block a user