CompuServe Messages

#RastPort access

    25-Aug-94 16:30:26
Sb: #RastPort access
Fm: Joe Buckley 76703,4032
To: ALL
OK, I have only just managed to get a copy of the v2.0 RKMs, so I am a mere beginner at Amiga-specific programming. I have a question about getting at the RastPort structure of the current window. I have a custom screen and a simple window fire up fine, the problem is when I try to use some of the graphics drawing primitives on that RastPort. Any time I've tried to execute a routine (a Move, Draw, Circle, etc. ). into the port, it crashes. I've tried it with both LONGs and SHORTs as the position parameters with no luck (I've seen examples of this done both ways). Any clues? How obvious is the mistake? 🙂 I have made sure that the values places in the position parameters are all within the window in question. (I eventually want to see how well the clipping routines can fit to the job I intend to use this for. Since I am at such a beginner stage, I'm sure to be pestering you all quite a bit in the next few weeks (at least). Thanks in advance. Joe struct Screen *my_screen; struct Window *my_window; struct RastPort *rastPort; WORD x, y, z; LONG result; rastPort = my_window->RPort; Delay( 50 * 3 ); DrawCircle( &rastPort, x, y, z );