mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-05 14:35:58 +00:00
move window after centering
updated output
This commit is contained in:
parent
b535bd0273
commit
b032d56cea
1 changed files with 8 additions and 4 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue