Refactored dimension int local variable

This commit is contained in:
Bokros Bálint 2016-05-14 13:33:09 +02:00
parent aef1c12b22
commit eb7ac569b8

View File

@ -15,8 +15,6 @@ public class Display extends JPanel{
private List<Drawer> visuals;
private Clip clip;
private Dimension dimension;
public Display() {
visuals = new ArrayList<>();
setVisible(false);
@ -66,7 +64,7 @@ public class Display extends JPanel{
}
public void setMapSize(int width, int height) {
dimension = new Dimension(width * 64, height * 64);
Dimension dimension = new Dimension(width * 64, height * 64);
setPreferredSize(dimension);
setMinimumSize(dimension);
}