home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
rtsi.com
/
2014.01.www.rtsi.com.tar
/
www.rtsi.com
/
OS9
/
OSK
/
APPS
/
DVI_MGR
/
dvimgr_s.lzh
/
dvimgr
/
getbmap.h
< prev
next >
Wrap
Text File
|
1993-08-06
|
997b
|
41 lines
/* -*-C-*- getbmap.h */
/*-->getbmap*/
/**********************************************************************/
/****************************** getbmap *******************************/
/**********************************************************************/
void
getbmap() /* allocate bitmap array */
{
#if SEGMEM
register UNSIGN16 y;
if (bitmap[0] == (UNSIGN32*)NULL)
{
for (y = 0; y < (UNSIGN16)YBIT; ++y)
{
bitmap[y] = (UNSIGN32*)MALLOC( (unsigned)((XBIT) * \
sizeof(UNSIGN32)) );
if (bitmap[y] == (UNSIGN32*)NULL)
(void)fatal(
"getbmap(): Cannot allocate space for page image bitmap");
}
}
#else /* NOT SEGMEM */
UNSIGN32 bmsize;
if (bitmap == (UNSIGN32*)NULL)
{
bmsize = ((UNSIGN32)(XBIT)) * ((UNSIGN32)(YBIT)) * sizeof(UNSIGN32)+2048;
bitmap = (UNSIGN32*)MALLOC( bmsize);
if (bitmap == (UNSIGN32*)NULL)
{
(void)fatal(
"getbmap(): Cannot allocate space for page image bitmap");
}
}
#endif /* SEGMEM */
}