CompuServe Messages

Screen Image HELP!

    11-Dec-91 18:43:48
Fm: KEITH YOUNG 73170,307
To: Steve Jackson Games 73407,515
Steve, Ok, looks like there are a few problems here… first off, your image 'data' will need to be in CHIP memory, you can get it there using a compiler keyword (SAS), link option (SAS/Manx) or by allocating some chip memory then copying the data there. Since you said that it worked on your window, I'll assume you already knew this and that that is not the problem. Next thing I see is that you have the image width/height set to the size of the screen… if the image IS that size, then this is ok too, otherwise, you'll need to set the image diminsions to the actual width/height of the imagery. And finally (and this is probably your problem) is that the Rastport in the screen structure is actually an 'instance' of a RastPort structure and not a pointer to one, so the DrawImage() call should be: DrawImage( &main_screen->RastPort, &titlescreen_image, 0, 0); I tried this using your code as a base and it works fine. Cheers, Keith