11571158115911601161116211631164116511661167
final int UNMASKED = 1; x11.XSetForeground(dpy, gc, new NativeLong(UNMASKED)); x11.XFillRectangles(dpy, pm, gc, rects, rects.length); } finally { x11.XFreeGC(dpy, gc); } return pm; } private boolean didCheck;
13881389139013911392139313941395139613971398
offset.x += bounds.x; offset.y += bounds.y; x11.XPutImage(dpy, win, gc, image, 0, 0, offset.x, offset.y, w, h); x11.XFree(image.getPointer()); x11.XFreeGC(dpy, gc); x11.XCloseDisplay(dpy); } } public void setWindowTransparent(final Window w,
192193194195196197198199200201202
x11.XFree(image.getPointer()); putImageTime = System.currentTimeMillis(); } finally { if (gc != null) x11.XFreeGC(dpy, gc); } long end = System.currentTimeMillis(); //System.out.println("gc: " + (gcTime-start) + "ms"); //System.out.println("blit: " + (blitTime-gcTime) + "ms"); //System.out.println("write: " + (write-blitTime) + "ms");