X-Git-Url: http://git.megacz.com/?p=org.ibex.core.git;a=blobdiff_plain;f=src%2Forg%2Fxwt%2Fplat%2FDarwin.cc;h=fc05588ccfa8b8325e77a1dc9f8efa2000fa0559;hp=7f4d2f31be97a5179ac6eb7ea82367a093b53f7a;hb=745fb6aad79e10eb8c402b8fa6a591769c0fcdfb;hpb=466511543a8a6c421bfa7979e000a115e1f2a2c8 diff --git a/src/org/xwt/plat/Darwin.cc b/src/org/xwt/plat/Darwin.cc index 7f4d2f3..fc05588 100644 --- a/src/org/xwt/plat/Darwin.cc +++ b/src/org/xwt/plat/Darwin.cc @@ -57,8 +57,8 @@ static void* dlsym(char* symbol) { NSLOOKUPSYMBOLINIMAGE_OPTION_BIND)); if (ret == NULL) ret = NSAddressOfSymbol(NSLookupSymbolInImage(SCHandle, symbol, NSLOOKUPSYMBOLINIMAGE_OPTION_BIND)); - printf("linking symbol %s to address %x\n", symbol, ret); - fflush(stdout); + /*printf("linking symbol %s to address %x\n", symbol, ret); + fflush(stdout);*/ return ret; } @@ -714,8 +714,9 @@ void Darwin$CarbonSurface::natInit(jboolean framed) { WindowAttributes attr = kWindowStandardHandlerAttribute| (framed ? kWindowInWindowMenuAttribute|kWindowStandardDocumentAttributes|kWindowLiveResizeAttribute : 0); OSStatus r; - rect.top = 0; rect.left = 0; rect.bottom = 300; rect.right=300; - winWidth = winHeight = 300; + rect.top = rect.left = 0; + rect.bottom = rect.right = 10; + winWidth = winHeight = 10; r = WC(CreateNewWindow)(wc, attr, &rect, &window); checkStatus(r,"CreateNewWindow"); @@ -1198,7 +1199,7 @@ void Darwin$GLCarbonSurface::natBlit(Darwin$GLCarbonPixelBuffer *db, jint sx1, j db->activateContext(); glFlush(); checkGLError(); - + WC(aglSetCurrentContext)(ctx); checkGLError();