Fixing Mac problems.
This commit is contained in:
parent
9a4824e79b
commit
f5106d92ed
|
@ -39,6 +39,11 @@ package org.lwjgl;
|
|||
* @version $Revision$
|
||||
*/
|
||||
class NativeSysImplementation extends DefaultSysImplementation {
|
||||
|
||||
static {
|
||||
Sys.initialize();
|
||||
}
|
||||
|
||||
public native long getTimerResolution();
|
||||
|
||||
public native long getTime();
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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/>
|
||||
|
|
Loading…
Reference in New Issue