Fixing Mac problems.

This commit is contained in:
Caspian Rychlik-Prince 2005-01-22 00:34:50 +00:00
parent 9a4824e79b
commit f5106d92ed
4 changed files with 9 additions and 7 deletions

View File

@ -39,6 +39,11 @@ package org.lwjgl;
* @version $Revision$
*/
class NativeSysImplementation extends DefaultSysImplementation {
static {
Sys.initialize();
}
public native long getTimerResolution();
public native long getTime();

View File

@ -179,7 +179,7 @@ final class MacOSXDisplay implements DisplayImplementation {
public boolean isCloseRequested() {
boolean result;
synchronized (this) {
result = close_requested;
result = close_requested || (frame != null && frame.syncIsCloseRequested());
close_requested = false;
}
return result;

View File

@ -47,7 +47,6 @@ import java.awt.event.ComponentEvent;
import java.awt.event.ComponentListener;
import java.awt.event.WindowEvent;
import java.awt.event.WindowListener;
import java.lang.reflect.InvocationTargetException;
import org.lwjgl.LWJGLException;

View File

@ -31,13 +31,11 @@
*/
package org.lwjgl.opengl;
import org.lwjgl.Sys;
import org.lwjgl.BufferUtils;
import org.lwjgl.LWJGLException;
import java.nio.IntBuffer;
import java.nio.ByteBuffer;
import org.lwjgl.LWJGLException;
import org.lwjgl.Sys;
/**
* $Id$
* <p/>