forked from old/legacy-imlib2
Correct (disabled) debug printouts
This commit is contained in:
parent
49af0f9d59
commit
3c21caea23
|
@ -36,7 +36,7 @@ __imlib_CreatePixmapsForImage(Display * d, Drawable w, Visual * v, int depth,
|
||||||
ip->references++;
|
ip->references++;
|
||||||
#ifdef DEBUG_CACHE
|
#ifdef DEBUG_CACHE
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"[Imlib2] Match found in cache. Reference count is %d, pixmap 0x%08x, mask 0x%08x\n",
|
"[Imlib2] Match found in cache. Reference count is %d, pixmap 0x%08lx, mask 0x%08lx\n",
|
||||||
ip->references, ip->pixmap, ip->mask);
|
ip->references, ip->pixmap, ip->mask);
|
||||||
#endif
|
#endif
|
||||||
return 2;
|
return 2;
|
||||||
|
@ -83,7 +83,7 @@ __imlib_CreatePixmapsForImage(Display * d, Drawable w, Visual * v, int depth,
|
||||||
__imlib_AddImagePixmapToCache(ip);
|
__imlib_AddImagePixmapToCache(ip);
|
||||||
#ifdef DEBUG_CACHE
|
#ifdef DEBUG_CACHE
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"[Imlib2] Created pixmap. Reference count is %d, pixmap 0x%08x, mask 0x%08x\n",
|
"[Imlib2] Created pixmap. Reference count is %d, pixmap 0x%08lx, mask 0x%08lx\n",
|
||||||
ip->references, ip->pixmap, ip->mask);
|
ip->references, ip->pixmap, ip->mask);
|
||||||
#endif
|
#endif
|
||||||
return 1;
|
return 1;
|
||||||
|
|
|
@ -317,7 +317,7 @@ __imlib_ConsumeImagePixmap(ImlibImagePixmap * ip)
|
||||||
{
|
{
|
||||||
#ifdef DEBUG_CACHE
|
#ifdef DEBUG_CACHE
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"[Imlib2] Deleting pixmap. Reference count is %d, pixmap 0x%08x, mask 0x%08x\n",
|
"[Imlib2] Deleting pixmap. Reference count is %d, pixmap 0x%08lx, mask 0x%08lx\n",
|
||||||
ip->references, ip->pixmap, ip->mask);
|
ip->references, ip->pixmap, ip->mask);
|
||||||
#endif
|
#endif
|
||||||
if (ip->pixmap)
|
if (ip->pixmap)
|
||||||
|
@ -865,7 +865,7 @@ __imlib_FindImlibImagePixmapByID(Display * d, Pixmap p)
|
||||||
{
|
{
|
||||||
#ifdef DEBUG_CACHE
|
#ifdef DEBUG_CACHE
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"[Imlib2] Match found. Reference count is %d, pixmap 0x%08x, mask 0x%08x\n",
|
"[Imlib2] Match found. Reference count is %d, pixmap 0x%08lx, mask 0x%08lx\n",
|
||||||
ip->references, ip->pixmap, ip->mask);
|
ip->references, ip->pixmap, ip->mask);
|
||||||
#endif
|
#endif
|
||||||
return ip;
|
return ip;
|
||||||
|
@ -915,7 +915,7 @@ __imlib_FreePixmap(Display * d, Pixmap p)
|
||||||
ip->references--;
|
ip->references--;
|
||||||
#ifdef DEBUG_CACHE
|
#ifdef DEBUG_CACHE
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"[Imlib2] Reference count is now %d for pixmap 0x%08x\n",
|
"[Imlib2] Reference count is now %d for pixmap 0x%08lx\n",
|
||||||
ip->references, ip->pixmap);
|
ip->references, ip->pixmap);
|
||||||
#endif
|
#endif
|
||||||
/* if it becaume 0 reference count - clean the cache up */
|
/* if it becaume 0 reference count - clean the cache up */
|
||||||
|
@ -926,7 +926,7 @@ __imlib_FreePixmap(Display * d, Pixmap p)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
#ifdef DEBUG_CACHE
|
#ifdef DEBUG_CACHE
|
||||||
fprintf(stderr, "[Imlib2] Pixmap 0x%08x not found. Freeing.\n", p);
|
fprintf(stderr, "[Imlib2] Pixmap 0x%08lx not found. Freeing.\n", p);
|
||||||
#endif
|
#endif
|
||||||
XFreePixmap(d, p);
|
XFreePixmap(d, p);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue