You are fooling us, aren't you? First, this is not an enlightenment
question. This is basic c problem.

>         unsigned char* data;
>         ImlibImage *newIm; ImlibImage *newId;
>         int i,j;
>

I suppose it is a copy and paste error that you have this two times.

>   unsigned char* data;
>         ImlibImage *newIm; ImlibImage *newId;
>         int i,j;
>
>         for(i=190;i<280;i++)
>           {
>             for(j=215;j<283;j++)
>               {
> => data[3*(i+w*j)+0] = (im->rgb_data[3*(i+w*j)+0]);

You have not allocated memory for data.

>                 data[3*(i+w*j)+1] = (im->rgb_data[3*(i+w*j)+1]);
data[3*(i+w*j)+2] = (im->rgb_data[3*(i+w*j)+2]);
>               }
>           }

Gerald





-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
enlightenment-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-users

Reply via email to