move before creation

This commit is contained in:
Brian Matzon 2004-12-27 21:39:30 +00:00
parent abb1a97b3b
commit 94bd9a8af2
1 changed files with 2 additions and 3 deletions

View File

@ -57,14 +57,13 @@ public class WindowCreationTest {
int x = 100, y = 100;
boolean fullscreen = false;
System.out.println("Moving to 100, 100");
Display.setLocation(x, y);
// Create the actual window
try {
setDisplayMode();
Display.create();
System.out.println("Moving to 100, 100");
Display.setLocation(x, y);
} catch (Exception e) {
e.printStackTrace();
System.out.println("Unable to create window!, exiting...");