Skip to content

Commit

Permalink
Fixed bug #1
Browse files Browse the repository at this point in the history
  • Loading branch information
winspeednl committed Nov 19, 2016
1 parent 37e4e62 commit 543288c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Java/src/me/winspeednl/libz/screen/Screen.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ public class Screen {
public Screen(GameCore gc) {

canvas = new Canvas();

frame = new JFrame(gc.getTitle());

frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
Expand Down Expand Up @@ -71,7 +70,7 @@ public Screen(GameCore gc) {
}

public void update() {
graphics.drawImage(image, 0, 0, image.getWidth(), image.getHeight(), null);
graphics.drawImage(image, 0, 0, canvas.getWidth(), canvas.getHeight(), null);
bufferStrategy.show();
}

Expand Down

0 comments on commit 543288c

Please sign in to comment.