mirror of
https://github.com/joncampbell123/dosbox-x.git
synced 2025-05-08 19:32:39 +08:00
Consider autodbcs option in device_CON::Write
This commit is contained in:
parent
ef64e0b3ff
commit
d7673db596
@ -1053,6 +1053,7 @@ void DOS_BreakAction();
|
||||
bool read_kanji1 = false;
|
||||
uint8_t temp_char = 0;
|
||||
void WriteChar(uint16_t col, uint16_t row, uint8_t page, uint16_t chr, uint8_t attr, bool useattr);
|
||||
extern bool dbcs_sbcs;
|
||||
|
||||
bool device_CON::Write(const uint8_t * data,uint16_t * size) {
|
||||
uint16_t count=0;
|
||||
@ -1117,7 +1118,11 @@ bool device_CON::Write(const uint8_t * data,uint16_t * size) {
|
||||
col = CURSOR_POS_COL(page);
|
||||
BIOS_NCOLS;
|
||||
|
||||
if(isDBCSCP() && !dos.direct_output) { // Consideration of first byte of DBCS characters at the end of line
|
||||
if(isDBCSCP() && !dos.direct_output
|
||||
#if defined(USE_TTF)
|
||||
&& dbcs_sbcs
|
||||
#endif
|
||||
) { // Consideration of first byte of DBCS characters at the end of line
|
||||
if(!read_kanji1 && isKanji1(data[count])) {
|
||||
read_kanji1 = true;
|
||||
temp_char = data[count];
|
||||
|
Loading…
x
Reference in New Issue
Block a user