예제 #1
0
파일: vidconvert.c 프로젝트: doolse/wingsos
void render() {
    int j,y;
    int *upto=&buff[0][1];
    char *colup = coltab;

    dither();
    y=yup;
    for (j=0; j<heightDU; j++) {
        if (y>=height)
            break;
        if (!(y&7)) {
            memcpy(colloc, colup, width8);
            colloc += width8;
            colup += cols8;
        }
        fillrow(upto, bmpup);
        upto = (int *) ((uchar *) upto + linesize);
        y++;
        bmpup++;
        if (!(y&7)) {
            bmpup += bmpwidth-8;
        }
    }

}
예제 #2
0
void delline(void)
{
  int row, col, left, right, nbytes, bot, fill;
  ScreenGetCursor(&row, &col);
  left = txinfo.winleft - 1;
  right = txinfo.winright - 1;
  nbytes = (right-left+1)*2;
  bot = txinfo.winbottom-1;
  fill = ' ' | (ScreenAttrib << 8);
  while(row < bot)
    {
      movedata(_go32_conventional_mem_selector(), VIDADDR(row+1, left),
               _go32_conventional_mem_selector(), VIDADDR(row, left),
               nbytes);
      row++;
    }
  fillrow(bot,left,right,fill);
}