garbage collecting again
This commit is contained in:
21
Lib/mircol.c
21
Lib/mircol.c
@@ -10,8 +10,7 @@
|
||||
#include "../tthimage.h"
|
||||
|
||||
/*::------------------------------------------------------------------::*/
|
||||
int
|
||||
Image_mircol_0(Image_Desc *dst, char *txt, int flag)
|
||||
int Image_mircol_0(Image_Desc *dst, char *txt, int flag)
|
||||
{
|
||||
int x, y;
|
||||
RGBA fond, encre;
|
||||
@@ -66,8 +65,7 @@ return FUNC_IS_BETA;
|
||||
}
|
||||
/*::------------------------------------------------------------------::*/
|
||||
/* a quoi sert ce flag */
|
||||
int
|
||||
Image_mircol_1(Image_Desc *dst, char *txt, int flag)
|
||||
int Image_mircol_1(Image_Desc *dst, char *txt, int flag)
|
||||
{
|
||||
RGBA fond, encre;
|
||||
int x, y, r, g, b;
|
||||
@@ -239,19 +237,20 @@ int Image_mirRGB_0(Image_Desc *dst, int flag)
|
||||
int x, y;
|
||||
|
||||
#if DEBUG_LEVEL
|
||||
fprintf(stderr, "%s : %p %d\n", __func__, dst, flag);
|
||||
fprintf(stderr, ">>> %s ( %p %d )\n", __func__, dst, flag);
|
||||
#endif
|
||||
|
||||
if (dst->width != 256 || dst->height != 256)
|
||||
{
|
||||
if (flag) {
|
||||
fprintf(stderr, "flag is %d in %s\n", flag, __func__);
|
||||
}
|
||||
|
||||
if (dst->width != 256 || dst->height != 256) {
|
||||
fprintf(stderr, "Image mire RGB 0: image is not 256x256\n");
|
||||
return IMAGE_BAD_DIMS;
|
||||
}
|
||||
|
||||
for (x=0; x<256; x++)
|
||||
{
|
||||
for (y=0; y<256; y++)
|
||||
{
|
||||
for (x=0; x<256; x++) {
|
||||
for (y=0; y<256; y++) {
|
||||
(dst->Rpix[y])[x] = x;
|
||||
(dst->Gpix[y])[x] = y;
|
||||
(dst->Bpix[y])[x] = (y+x)/2;
|
||||
|
||||
Reference in New Issue
Block a user