1
0
Fork 0

INT10_WriteChar fixed to move the cursor.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@89
This commit is contained in:
Sjoerd van der Berg 2002-07-29 09:35:02 +00:00
parent 14f0ad8556
commit 398c8909cd

View file

@ -311,9 +311,15 @@ void INT10_WriteChar(Bit8u chr,Bit8u attr,Bit8u page,Bit16u count,bool showattr)
if(page==0xFF) page=real_readb(BIOSMEM_SEG,BIOSMEM_CURRENT_PAGE);
Bit8u cur_row=CURSOR_POS_ROW(page);
Bit8u cur_col=CURSOR_POS_COL(page);
BIOS_NCOLS;BIOS_NROWS;
while (count>0) {
WriteChar(cur_col,cur_row,page,chr,attr,showattr);
count--;
cur_col++;
if(cur_col==ncols) {
cur_col=0;
cur_row++;
}
}
}