mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-02-25 17:14:18 +01:00
Fixed reflection method names in LinuxCanvasImplementation.java
This commit is contained in:
parent
8364443052
commit
451a5b9d92
|
|
@ -50,7 +50,7 @@ import java.lang.reflect.Method;
|
|||
final class LinuxCanvasImplementation implements AWTCanvasImplementation {
|
||||
static int getScreenFromDevice(GraphicsDevice device) throws LWJGLException {
|
||||
try {
|
||||
Method getScreen_method = device.getClass().getMethod("getScreen()", null);
|
||||
Method getScreen_method = device.getClass().getMethod("getScreen", null);
|
||||
Integer screen = (Integer)getScreen_method.invoke(null, null);
|
||||
return screen.intValue();
|
||||
} catch (Exception e) {
|
||||
|
|
@ -60,7 +60,7 @@ final class LinuxCanvasImplementation implements AWTCanvasImplementation {
|
|||
|
||||
private static int getVisualIDFromConfiguration(GraphicsConfiguration configuration) throws LWJGLException {
|
||||
try {
|
||||
Method getVisual_method = configuration.getClass().getMethod("getVisual()", null);
|
||||
Method getVisual_method = configuration.getClass().getMethod("getVisual", null);
|
||||
Integer visual = (Integer)getVisual_method.invoke(null, null);
|
||||
return visual.intValue();
|
||||
} catch (Exception e) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue