Consistently use #if IMLIB2_DEBUG (not #ifdef)
This commit is contained in:
parent
1bdc69a6a1
commit
6ff2ac0815
|
@ -338,7 +338,7 @@ _load(ImlibImage * im, int load_data)
|
||||||
fptr = (unsigned char *)im->fi->fdata;
|
fptr = (unsigned char *)im->fi->fdata;
|
||||||
fptr += _PNG_SIG_SIZE;
|
fptr += _PNG_SIG_SIZE;
|
||||||
seen_actl = false;
|
seen_actl = false;
|
||||||
#ifdef IMLIB2_DEBUG
|
#if IMLIB2_DEBUG
|
||||||
int ic = 0;
|
int ic = 0;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -358,7 +358,7 @@ _load(ImlibImage * im, int load_data)
|
||||||
D("\n");
|
D("\n");
|
||||||
if (!seen_actl)
|
if (!seen_actl)
|
||||||
goto scan_done; /* No acTL before IDAT - Regular PNG */
|
goto scan_done; /* No acTL before IDAT - Regular PNG */
|
||||||
#ifdef IMLIB2_DEBUG
|
#if IMLIB2_DEBUG
|
||||||
break; /* Show all frames */
|
break; /* Show all frames */
|
||||||
#else
|
#else
|
||||||
if (ctx.pch_fctl)
|
if (ctx.pch_fctl)
|
||||||
|
@ -397,7 +397,7 @@ _load(ImlibImage * im, int load_data)
|
||||||
|
|
||||||
case PNG_TYPE_fdAT:
|
case PNG_TYPE_fdAT:
|
||||||
D("\n");
|
D("\n");
|
||||||
#ifdef IMLIB2_DEBUG
|
#if IMLIB2_DEBUG
|
||||||
break; /* Show all frames */
|
break; /* Show all frames */
|
||||||
#else
|
#else
|
||||||
if (ctx.pch_fctl)
|
if (ctx.pch_fctl)
|
||||||
|
@ -430,7 +430,7 @@ _load(ImlibImage * im, int load_data)
|
||||||
png_process_data(png_ptr, info_ptr, fptr, _PNG_SIG_SIZE);
|
png_process_data(png_ptr, info_ptr, fptr, _PNG_SIG_SIZE);
|
||||||
|
|
||||||
fptr += _PNG_SIG_SIZE;
|
fptr += _PNG_SIG_SIZE;
|
||||||
#ifdef IMLIB2_DEBUG
|
#if IMLIB2_DEBUG
|
||||||
ic = 0;
|
ic = 0;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue