[comp.sys.amiga] DrawImage

pawn@wpi.wpi.edu (Kevin Goroway) (02/19/89)

I am having problems getting an image onto a RastPort (still...)
[many many thanks go to Chuck McManis for getting me this far...]
DrawImage is now working, but it is not putting my image there, it
is putting garbage on the screen...
I compile my image data (and the image structure) seperately, using
Lattice by doing a:

lc -ad b1.c   (which supposedly forces my data into chip memory)

my code does the following...
extern struct Image b1_image;         (because I am linking it...)
extern UWORD b1_imageData[];

b1_image.ImageData=&b1_imageData[0];  (again actually; this is done
				       also in the structure def.)
DrawImage(&rp,&b1_image,10,100);      (works (sort of...))
				      (it is reading my size def fine,
				       but not my image def...)

could my image still not be in chip ram?  I wrote some code to make
sure it is...

for (j=0;j<sizeof(b1_imageData);j++)
*src++=*dest++;

(or something like that, I don't recall)
But that didn't work either!
Could it have something to do with the PlanePick/PlaneOnOff stuff?
(I haven't touched that yet, but I still don't think I should be getting
garbage on the screen...)
thanks in advance...

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
| Pawn@wpi.wpi.edu 		Worcester Polytechnic Institute, Mass, U.S.A. |
| Pawn@wpi.Bitnet		main() { printf("Hello World!\n); }           |
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=