From b032d56cea0dfb642a90a94e416925b535dce6d5 Mon Sep 17 00:00:00 2001 From: Brian Matzon Date: Mon, 27 Dec 2004 21:32:22 +0000 Subject: [PATCH] move window after centering updated output --- src/java/org/lwjgl/test/WindowCreationTest.java | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/java/org/lwjgl/test/WindowCreationTest.java b/src/java/org/lwjgl/test/WindowCreationTest.java index 15deb1f0..67d69f6d 100644 --- a/src/java/org/lwjgl/test/WindowCreationTest.java +++ b/src/java/org/lwjgl/test/WindowCreationTest.java @@ -58,13 +58,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..."); @@ -72,7 +72,11 @@ public class WindowCreationTest { } System.out.println("Window created"); - System.out.println(Display.getDisplayMode().getHeight() + ", " + Display.getDisplayMode().getWidth() + ", " + Display.getTitle()); + System.out.println("Width: " + Display.getDisplayMode().getWidth() + + ", Height: " + Display.getDisplayMode().getHeight() + + ", Bits per pixel: " + Display.getDisplayMode().getBitsPerPixel() + + ", Frequency: " + Display.getDisplayMode().getFrequency() + + ", Title: "+ Display.getTitle()); Display.setVSyncEnabled(true); Display.setTitle("WindowCreationTest");