20 |
|
/* picture memory usage before warning */ |
21 |
|
#ifndef PSIZWARN |
22 |
|
#ifdef SMLMEM |
23 |
< |
#define PSIZWARN 1500000 |
23 |
> |
#define PSIZWARN 3000000 |
24 |
|
#else |
25 |
< |
#define PSIZWARN 5000000 |
25 |
> |
#define PSIZWARN 10000000 |
26 |
|
#endif |
27 |
|
#endif |
28 |
|
|
218 |
|
i = ns*sl*sizeof(COLR); |
219 |
|
#if PSIZWARN |
220 |
|
if (i > PSIZWARN) { /* memory warning */ |
221 |
< |
sprintf(errmsg, "picture file \"%s\" using %d bytes of memory", |
222 |
< |
pname, i); |
221 |
> |
sprintf(errmsg, "picture file \"%s\" using %.1f MB of memory", |
222 |
> |
pname, i*(1.0/(1024*1024))); |
223 |
|
error(WARNING, errmsg); |
224 |
|
} |
225 |
|
#endif |