From 61949cea24876e8c5ec009aca80e06455744db6e Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Sun, 20 Feb 2005 12:31:42 +0000 Subject: [PATCH] *** empty log message *** --- src/java/org/lwjgl/opengl/LinuxCanvasImplementation.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/java/org/lwjgl/opengl/LinuxCanvasImplementation.java b/src/java/org/lwjgl/opengl/LinuxCanvasImplementation.java index 987bdde0..683d4b4f 100644 --- a/src/java/org/lwjgl/opengl/LinuxCanvasImplementation.java +++ b/src/java/org/lwjgl/opengl/LinuxCanvasImplementation.java @@ -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);