mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-04 14:07:52 +00:00
Linux support for AWTGLCanvas. Big refactor of context specific code into Context.java that is now shared between Display, Pbuffer and AWTGLCanvas. (Win32 and Mac OS X is now broken while I implement the same changes on those platforms)
This commit is contained in:
parent
8feec32e60
commit
fb5d89599b
47 changed files with 2598 additions and 653 deletions
|
|
@ -272,10 +272,10 @@ public class Game {
|
|||
* Sets the display mode for fullscreen mode
|
||||
*/
|
||||
private boolean setDisplayMode() {
|
||||
// get modes
|
||||
DisplayMode[] dm = org.lwjgl.util.Display.getAvailableDisplayModes(width, height, -1, -1, -1, -1, 60, 60);
|
||||
|
||||
try {
|
||||
// get modes
|
||||
DisplayMode[] dm = org.lwjgl.util.Display.getAvailableDisplayModes(width, height, -1, -1, -1, -1, 60, 60);
|
||||
|
||||
org.lwjgl.util.Display.setDisplayMode(dm, new String[] {
|
||||
"width=" + width,
|
||||
"height=" + height,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue