mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-06 06:53:59 +00:00
*** empty log message ***
This commit is contained in:
parent
451a5b9d92
commit
61949cea24
1 changed files with 2 additions and 2 deletions
|
|
@ -51,7 +51,7 @@ final class LinuxCanvasImplementation implements AWTCanvasImplementation {
|
|||
static int getScreenFromDevice(GraphicsDevice device) throws LWJGLException {
|
||||
try {
|
||||
Method getScreen_method = device.getClass().getMethod("getScreen", null);
|
||||
Integer screen = (Integer)getScreen_method.invoke(null, null);
|
||||
Integer screen = (Integer)getScreen_method.invoke(device, null);
|
||||
return screen.intValue();
|
||||
} catch (Exception e) {
|
||||
throw new LWJGLException(e);
|
||||
|
|
@ -61,7 +61,7 @@ final class LinuxCanvasImplementation implements AWTCanvasImplementation {
|
|||
private static int getVisualIDFromConfiguration(GraphicsConfiguration configuration) throws LWJGLException {
|
||||
try {
|
||||
Method getVisual_method = configuration.getClass().getMethod("getVisual", null);
|
||||
Integer visual = (Integer)getVisual_method.invoke(null, null);
|
||||
Integer visual = (Integer)getVisual_method.invoke(configuration, null);
|
||||
return visual.intValue();
|
||||
} catch (Exception e) {
|
||||
throw new LWJGLException(e);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue