From 398c8909cd6c02a0fe72691a3078e7e6ead3e262 Mon Sep 17 00:00:00 2001 From: Sjoerd van der Berg Date: Mon, 29 Jul 2002 09:35:02 +0000 Subject: [PATCH] INT10_WriteChar fixed to move the cursor. Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@89 --- src/ints/int10_char.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/ints/int10_char.cpp b/src/ints/int10_char.cpp index d0dd415b..af0e7d76 100644 --- a/src/ints/int10_char.cpp +++ b/src/ints/int10_char.cpp @@ -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++; + } } }