From: | George Davis |
Date: | 18 Apr 2001 at 01:42:21 |
Subject: | Re: Corrupt Display... |
On 18-Apr-01, Mac MacMende wrote:
> I've got a little problem, I just want to Blit a shape to Bitmap, based on
> the DisplayLib. So this is my Source:
It's flickering because you can see the bitmap as it's cleared.
Looks like you want to use two bitmaps and double buffer the display.
Try this -
WBStartup
InitPalette 0,32
InitCopList 0, 44, 256, $10005, 8, 32, 0
BLITZ
QAMIGA
LoadPalette 0,"mc.col"
LoadShape 0,"mc1c.bsh"
BLITZ
BitMap 0,320,256,6
Bitmap 1,320,256,6
CreateDisplay 0
DisplayPalette 0,0
Queue 0,1
Queue 1,1
QBlitMode CookieMode
db=0 ; this holds the bitmap to display
For a=1 To 50
UnQueue db
QBlit db,0,0,50
VWait
DisplayBitmap 0,db
db=1-db ;alternate between 1 and 0
Next a
I haven't tested this code,because I can't see my AGA output at the moment.
Regards.
---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list/-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list/-help@netsoc.ucd.ie