unsigned int bd_offset;
unsigned char * bd_offset;
void SavageWriteBitmapScreenToScreenColorExpand(    int x, int y, int w, int h,    unsigned char * src,    int srcwidth,    int srcx, int srcy,    int bg, int fg,    int rop,    unsigned int planemask){    BCI_GET_PTR;    unsigned int cmd;    unsigned int bd_offset;    unsigned int bd;        cmd = BCI_CMD_RECT | BCI_CMD_RECT_XP | BCI_CMD_RECT_YP        | BCI_CMD_SEND_COLOR        | BCI_CMD_DEST_GBD | BCI_CMD_SRC_SBD_MONO_NEW;    cmd |= (bg != -1) ? BCI_CMD_SEND_COLOR : BCI_CMD_SRC_TRANSPARENT;    cmd |= s3vAlu[rop];    bd |= BCI_BD_BW_DISABLE;    BCI_BD_SET_BPP(bd, 1);    BCI_BD_SET_STRIDE(bd, srcwidth);    bd_offset = srcwidth * srcy + (srcx >> 3) + (int) src;    WaitQueue(10);    BCI_SEND(cmd);    BCI_SEND(bd_offset);    BCI_SEND(bd);    BCI_SEND(fg);    BCI_SEND((bg != -1) ? bg : 0);    BCI_SEND(BCI_X_Y(srcx, srcy));    BCI_SEND(BCI_X_Y(x, y));    BCI_SEND(BCI_W_H(w, h));}