import java.util.*;
public class Darwin extends POSIX {
+ public static void main(String[] s) throws Exception { Main.main(s); }
static Darwin singleton;
private CarbonOpenGL openGL;
boolean jaguar; // true if we are on OS X >= 10.2
natInit();
}
+ protected Scheduler _getScheduler() { return new DarwinScheduler(); }
protected native void runApplicationEventLoop();
private class DarwinScheduler extends org.xwt.Scheduler {
public void run() {
// The blit_lock ensures the window size does not change through the entire blit operation.
public void render() {
+ /*
blitLock();
while(pendingResize) blitWait();
+ */
if(needsReshape) {
needsReshape = false;
reshape(winWidth,winHeight);
clear();
Dirty(0,0,winWidth,winHeight);
- //Dirty(0,0,getWidth(),getHeight());
}
super.render();
flush();
+ /*
blitUnlock();
+ */
}
private native void reshape(int w, int h);