mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-05 06:25:46 +00:00
Centres windowed mode now.
This commit is contained in:
parent
4d0a4ac6fc
commit
23b6e400eb
1 changed files with 2 additions and 2 deletions
|
|
@ -200,8 +200,8 @@ public final class Display {
|
|||
* A native context must exist, and it will be attached to the window.
|
||||
*/
|
||||
private static void createWindow() throws LWJGLException {
|
||||
x = Math.max(0, Math.min(initial_mode.getWidth() - current_mode.getWidth(), x));
|
||||
y = Math.max(0, Math.min(initial_mode.getHeight() - current_mode.getHeight(), y));
|
||||
x = Math.max(0, (initial_mode.getWidth() - current_mode.getWidth()) / 2);
|
||||
y = Math.max(0, (initial_mode.getHeight() - current_mode.getHeight()) / 2);
|
||||
display_impl.createWindow(current_mode, fullscreen, (fullscreen) ? 0 : x, (fullscreen) ? 0 : y);
|
||||
setTitle(title);
|
||||
initControls();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue