X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fxwt%2Fplat%2FDarwin.cc;h=fc05588ccfa8b8325e77a1dc9f8efa2000fa0559;hb=de378041d5ca2aca1a2b5a31ef15ae90a86c977f;hp=7f4d2f31be97a5179ac6eb7ea82367a093b53f7a;hpb=24b649e330a643931ed32f0667e4828498f7e3af;p=org.ibex.core.git 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();