Fixed reflection method names in LinuxCanvasImplementation.java

This commit is contained in:
Elias Naur 2005-02-20 12:24:02 +00:00
parent 8364443052
commit 451a5b9d92
1 changed files with 2 additions and 2 deletions

View File

@ -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) {