… | |
… | |
884 | lerp (c.a, to.a, percent) |
884 | lerp (c.a, to.a, percent) |
885 | ) |
885 | ) |
886 | ); |
886 | ); |
887 | } |
887 | } |
888 | |
888 | |
889 | #if TRACE_PIXMAPS |
|
|
890 | # undef XCreatePixmap |
|
|
891 | # undef XFreePixmap |
|
|
892 | Pixmap trace_XCreatePixmap (const char *file, int line, Display *dpy, Window r, unsigned int w, unsigned int h, unsigned int d) |
|
|
893 | { |
|
|
894 | Pixmap res = XCreatePixmap (dpy, r, w, h, d); |
|
|
895 | fprintf (stderr, "%s:%d: XCreatePixmap (%p,%lX,%u,%u,%u) returned %lX\n", file, line, dpy, r, w, h, d, res); |
|
|
896 | return res; |
|
|
897 | } |
|
|
898 | |
|
|
899 | void trace_XFreePixmap (const char *file, int line, Display *dpy, Pixmap p) |
|
|
900 | { |
|
|
901 | fprintf (stderr, "%s:%d: XFreePixmap (%p,%lX)\n", file, line, dpy, p); |
|
|
902 | XFreePixmap (dpy,p); |
|
|
903 | } |
|
|
904 | #endif |
|
|