833834835836837838839840841842843
return x11.XFillRectangle(dpy, pm, gc, x, y, w, h) != 0; } }); } finally { x11.XFreeGC(dpy, gc); } return pm; } private boolean didCheck;
173174175176177178179180181182183
} x11.XCopyArea(dpy, pixmap, win, gc, 0, 0, w, h, 0, 0); } finally { if (gc != null) x11.XFreeGC(dpy, gc); } } } finally { if (dpy != null)
11521153115411551156115711581159116011611162
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;
187188189190191192193194195196197
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");
13821383138413851386138713881389139013911392
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,
12771278127912801281128212831284128512861287
16341635163616371638163916401641164216431644
Rectangle rect = rectangles[i]; x11.XFillRectangle(dpy, pm, gc, rect.x, rect.y, rect.width, rect.height); } } finally { x11.XFreeGC(dpy, gc); } return pm; } @Override
15141515151615171518151915201521152215231524
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); } } @Override