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