Skip to content

Commit

Permalink
Solved checkstyles
Browse files Browse the repository at this point in the history
  • Loading branch information
bagarozzi committed Jul 8, 2024
1 parent e19786e commit 97488dc
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/main/java/it/unibo/bombardero/view/MenuCard.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*/
@SuppressWarnings("serial")
/**
* TODO: Javadoc
* The class containing the main menu of the game.
*/
public final class MenuCard extends JPanel {

Expand Down Expand Up @@ -57,7 +57,6 @@ public MenuCard(final Controller controller, final BombarderoGraphics graphicsEn
final GridBagConstraints gbc = new GridBagConstraints();
final JButton play = new JButton(new ImageIcon(playImage));
final JButton guide = new JButton(new ImageIcon(guideImage));
/* TODO: better style JButtons, in windows you can stil see the buttons highlight, in MacOS however no... */
guide.setBorder(null);
play.setBorder(null);
guide.setBorderPainted(false);
Expand Down Expand Up @@ -117,13 +116,6 @@ public void actionPerformed(final ActionEvent e) {
@Override
public void paintComponent(final Graphics g) {
super.paintComponent(g);
// final Dimension cropSize = graphicsEngine.getFrameSize();
/*
* TODO: original background image is 4k, the image is to be scaled and the
* parameteres modified
*/
// final Image img = background.getSubimage(3840 - cropSize.width, 2160 -
// cropSize.height, cropSize.width, cropSize.height);
g.drawImage(background, 0, 0, null);
}
}

0 comments on commit 97488dc

Please sign in to comment.