mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-28 06:53:58 +00:00
- fixed cursor positioning in console with double-wide characters present.
This commit is contained in:
parent
d5410a8828
commit
109413b3a1
1 changed files with 2 additions and 2 deletions
|
@ -262,7 +262,7 @@ public:
|
|||
cells -= w / 9;
|
||||
}
|
||||
*overflow = (cells < 0);
|
||||
return cells;
|
||||
return chars;
|
||||
}
|
||||
|
||||
|
||||
|
@ -297,8 +297,8 @@ public:
|
|||
if (overflow)
|
||||
{
|
||||
// We ended up in the middle of a double cell character, so set the start to the following character.
|
||||
StartPos++;
|
||||
StartPosCells++;
|
||||
StartPos = CharsForCells(StartPosCells, &overflow);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue