From 543288c5bb98317eab994b4323c5d1627969fb1b Mon Sep 17 00:00:00 2001 From: winspeednl Date: Sat, 19 Nov 2016 14:41:23 +0100 Subject: [PATCH] Fixed bug #1 --- Java/src/me/winspeednl/libz/screen/Screen.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Java/src/me/winspeednl/libz/screen/Screen.java b/Java/src/me/winspeednl/libz/screen/Screen.java index 25f06b7..e3b90a0 100644 --- a/Java/src/me/winspeednl/libz/screen/Screen.java +++ b/Java/src/me/winspeednl/libz/screen/Screen.java @@ -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); @@ -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(); }