I am with a Sam440Flex.
I allocate bitmap :
Code: Select all
displayCore.mainBitMap = IGraphics->AllocBitMap( 640, 480, 32, BMF_INTERLEAVED, NULL );
Sometimes it does return a NULL Pointer.
Code: Select all
struct NewScreen mainScreenDefine = {
0, 0,
640, 480,
32,
1, 0,
HIRES,
PUBLICSCREEN,
NULL,
displayCore.DefaultDisplayTitle,
NULL,
displayCore.mainBitMap
};
displayCore.mainScreen = IIntuition->OpenScreen( &mainScreenDefine );
Code: Select all
displayCore.mainScreen = IIntuition->OpenScreenTags( &mainScreenDefine,
SA_Left, 0, SA_Top, 0,
SA_Width, 640, SA_Height, 480,
SA_Depth, 32,
SA_DetailPen, 1, SA_BlockPen, 0,
SA_Title, *displayCore.DefaultDisplayTitle,
SA_BitMap, displayCore.mainBitMap,
SA_Type, PUBLICSCREEN,
SA_Draggable, TRUE,
TAG_END );
Can someone help me with a precise sample opening a Screen (without SDL or others stuff ... Only IGraphics & IIntuition) ?
Regards,