| 404 | // 2D pixmap on the 2D X server before calling the "real" XGetImage() function. |
| 405 | |
| 406 | XImage *XGetImage(Display *dpy, Drawable drawable, int x, int y, |
| 407 | unsigned int width, unsigned int height, unsigned long plane_mask, |
| 408 | int format) |
| 409 | { |
| 410 | XImage *xi = NULL; |
| 411 | TRY(); |
| 412 | |
| 413 | if(IS_EXCLUDED(dpy)) |
| 414 | return _XGetImage(dpy, drawable, x, y, width, height, plane_mask, format); |
| 415 | |
| 416 | ///////////////////////////////////////////////////////////////////////////// |
| 417 | OPENTRACE(XGetImage); PRARGD(dpy); PRARGX(drawable); PRARGI(x); |
| 418 | PRARGI(y); PRARGI(width); PRARGI(height); PRARGX(plane_mask); |
| 419 | PRARGI(format); STARTTRACE(); |
| 420 | ///////////////////////////////////////////////////////////////////////////// |
| 421 | |
| 422 | DISABLE_FAKER(); |
| 423 | |
| 424 | faker::VirtualPixmap *vpm = PMHASH.find(dpy, drawable); |
| 425 | if(vpm) vpm->readback(); |
| 426 | |
| 427 | xi = _XGetImage(dpy, drawable, x, y, width, height, plane_mask, format); |
| 428 | |
| 429 | ///////////////////////////////////////////////////////////////////////////// |
| 430 | STOPTRACE(); CLOSETRACE(); |
| 431 | ///////////////////////////////////////////////////////////////////////////// |
| 432 | |
| 433 | CATCH(); |
| 434 | ENABLE_FAKER(); |
| 435 | return xi; |
| 436 | } |
| 437 | |
| 438 | |
| 439 | // Tell the application that the GLX extension is present, even if it isn't |
no test coverage detected