@asman, post #1
@asman, post #1
@asman, post #1
3. Czy aby zamienić AllocBitMap to lepiej użyć AllocRaster czy AllocMem i co zrobić w przypadku bitmapy typu INTERLEAVED (grzebać samemu w structurze BitMap ??? )
@asman, post #1
@asman, post #9
@MDW, post #12
@asman, post #13
@Krashan, post #15
@asman, post #1
@asman, post #19
@asman, post #20
/* We want to be notified when the sound stops playing, so * we provide a signal task and a signal */ SDTA_SignalTask, (ULONG) FindTask (NULL), SDTA_SignalBit, (ULONG) SIGBREAKB_CTRL_F,
@asman, post #22
@Hexmage960, post #23
... ** $VER: soundclass.h 44.7 (6.6.1999) ** Includes Release 45.1 ... /* The following tags are new for V40 */ ... #define SDTA_SignalTask (SDTA_Dummy + 7) #define SDTA_SignalBit (SDTA_Dummy + 8) ...
/* Let the 8svx sound finish playing. Currently (V39) there is */ /* no programmatic way to find out when it is finished playing. */
@asman, post #24
@Krashan, post #26
@asman, post #27
//
struct Screen* screen = LockPubScreen(NULL);
Object* o = NewDTObject("tiles.iff", DTA_GroupID, GID_PICTURE,
PDTA_Remap, TRUE, PDTA_Screen, screen TAG_END);
if (NULL != o)
{
DoDTMethod(o, NULL, NULL, DTM_PROCLAYOUT,NULL,TRUE);
result = GfxGetBitmapTiles(o);
DisposeDTObject(o);
}
//...
static int GfxGetBitmapTiles(Object* o)
{
struct BitMap* bm;
GetDTAttrs(o, PDTA_DestBitMap, &bm, TAG_END);
const ULONG width = GetBitMapAttr(bm, BMA_WIDTH);
const ULONG height = GetBitMapAttr(bm, BMA_HEIGHT);
const ULONG depth = GetBitMapAttr(bm, BMA_DEPTH);
const ULONG flags = BMF_DISPLAYABLE|BMF_CLEAR;
bmap = AllocBitMap(width, height, depth, flags, NULL);
if (NULL != bmap)
{
BltBitMap(bm, 0, 0, bmap, 0, 0, width, height,
0xC0, 0xFF, NULL);
return 0;
}
return -1;
}BltBitMapRastPort(bmap, 16, 0, rport, x, y, 16, 16, 0xC0);