mirror of
https://github.com/joncampbell123/dosbox-x.git
synced 2025-05-09 03:41:10 +08:00
Clean up unused variables
This commit is contained in:
parent
3b99b9eae1
commit
d0466d9165
@ -287,7 +287,7 @@ int Program::WriteOut_NoParsing(const char * format, bool dbcs) {
|
||||
uint16_t size = (uint16_t)strlen(format);
|
||||
char const* buf = format;
|
||||
char last2 = 0, last3 = 0;
|
||||
int lastcol = 0, COLS=IS_PC98_ARCH?80:real_readw(BIOSMEM_SEG,BIOSMEM_NB_COLS);
|
||||
int lastcol = 0;
|
||||
uint8_t page=outcon?real_readb(BIOSMEM_SEG,BIOSMEM_CURRENT_PAGE):0;
|
||||
bool lead=false;
|
||||
dos.internal_output=true;
|
||||
@ -305,7 +305,7 @@ int Program::WriteOut_NoParsing(const char * format, bool dbcs) {
|
||||
if (buf[i] == 0xA) {
|
||||
if (last_written_character != 0xD) {out = 0xD;DOS_WriteFile(STDOUT,&out,&s);}
|
||||
if (outcon) rcount++;
|
||||
} else if (outcon && lead && CURSOR_POS_COL(page)==COLS-1 && !(TTF_using()
|
||||
} else if (outcon && lead && CURSOR_POS_COL(page)==ncols-1 && !(TTF_using()
|
||||
#if defined(USE_TTF)
|
||||
&& autoboxdraw
|
||||
#endif
|
||||
@ -313,7 +313,7 @@ int Program::WriteOut_NoParsing(const char * format, bool dbcs) {
|
||||
out = 0xD;DOS_WriteFile(STDOUT,&out,&s);
|
||||
out = 0xA;DOS_WriteFile(STDOUT,&out,&s);
|
||||
rcount++;
|
||||
} else if (outcon && !CURSOR_POS_COL(page) && lastcol == COLS-1)
|
||||
} else if (outcon && !CURSOR_POS_COL(page) && lastcol == ncols-1)
|
||||
rcount++;
|
||||
lastcol=CURSOR_POS_COL(page);
|
||||
last3=last2;last2=last_written_character;
|
||||
|
Loading…
x
Reference in New Issue
Block a user