02 October 2006, 02:16 | #1 |
Zone Friend
Join Date: Mar 2004
Location: Middle Earth
Age: 40
Posts: 2,127
|
_LVOOpenScreen() Bitmap
Hi
I open a screen with a depth of 1, and I want to load a 320x256x1bitplane bitmap to it. Does the bitmap in the Screen Structure point to the Bitmap or does it point to a bitmap structure? thanks. |
02 October 2006, 19:03 | #2 |
Registered User
Join Date: May 2006
Location: Germany
Posts: 97
|
Screen->BitMap is an embedded BitMap structure and not a pointer. For that reason this BitMap structure is not allowed to grow and one should access Screen->RastPort->BitMap (which is a pointer to the screen's BitMap structure).
Anyway for your purpose you should allocate a BitMap before opening the screen and supply that structure to OpenScreen(): myBitMap=AllocBitMap(320,256,1,BMF_DISPLAYABLE,NULL); Load you graphic to myBitMap->Planes[0]; myScreen=OpenScreenTags(NULL, ... , SABitMap, myBitMap , ... ); This will save memory and avoid flicker. |
02 October 2006, 23:25 | #3 |
Zone Friend
Join Date: Mar 2004
Location: Middle Earth
Age: 40
Posts: 2,127
|
thanks
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Return of some Bitmap titles? | Bloodwych | Amiga scene | 13 | 06 January 2013 14:09 |
the bitmap bros are from the uk | petza | Nostalgia & memories | 53 | 12 May 2006 16:08 |
Bitmap Brothers Interview | wakeupbomb | Nostalgia & memories | 4 | 23 March 2003 01:42 |
New Bitmap Brothers project? | Shatterhand | Retrogaming General Discussion | 12 | 30 December 2002 01:04 |
|
|