Peter Dons Tychsen donpedro@tdcadsl.dk writes:
#ifdef HAVE_LIBXXSHM
- if (descr->image && descr->useShm)
- if(descr->image && descr->useShm)
- {
- XGetGeometry(gdi_display, descr->drawable, &root, &x, &y, &width,
&height, &border_width, &depth);
TRACE("XGetGeometry(), width=%i, heigth=%i\n", width, height);
- }
- /* We must not call XShmGetImage() with a bitmap which is bigger
than the avilable area.
If we do, XShmGetImage() will fail (X exception), as it checks
for this internally. */
- if((descr->image && descr->useShm) && (bmpImage->width <= (width -
descr->xSrc))
{ int saveRed, saveGreen, saveBlue;&& (bmpImage->height <= (height - descr->ySrc)))
The patch is wrapped, and you don't want to use XGetGeometry, this incurs a server round-trip.