Skip to content
Permalink
Browse files

- fixed cursor positioning in console with double-wide characters pre…

…sent.
  • Loading branch information...
coelckers committed Mar 11, 2019
1 parent d5410a8 commit 109413b3a193b58d36c0fc01e64646f08df61851
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/c_console.cpp
@@ -262,7 +262,7 @@ struct FCommandBuffer
cells -= w / 9;
}
*overflow = (cells < 0);
return cells;
return chars;
}


@@ -297,8 +297,8 @@ struct FCommandBuffer
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);
}
}

0 comments on commit 109413b

Please sign in to comment.
You can’t perform that action at this time.