From: | Rik Sweeney |
Date: | 10 Aug 2000 at 23:24:52 |
Subject: | CGX and Bitmaps |
Hi, I was wondering if anyone can tell me what I'm doing wrong here.
The fragment below is part of a program to open a Cybergraphics
screen,
initialise a bitmap and draw a line on it before closing. All that
happens at the moment is the screen opens and then closes.
int i=0;
InitRastPort(&rp);
bitmapA=AllocBitMap(640,480,15,BMF_MINPLANES,scr->RastPort.BitMap);
rp.BitMap=bitmapA;
for (i=0;i<100;i++) {
Delay(150);
FreeBitMap(bitmapA);
The screen it opens is a 15bit 640x480 screen. Does anyone know where
I'm going wrong?
Thanks
Rik