Commit cb1e04a0 authored by Luis Javier Merino's avatar Luis Javier Merino Committed by Tomaz Canabrava
Browse files

Use a more explicit condition when combining chars

The logic for looking for a base character is meant to skip the right
part of double-wide characters.  Be explicit about it.
parent d6cc3d4d
...@@ -940,7 +940,7 @@ void Screen::displayCharacter(uint c) ...@@ -940,7 +940,7 @@ void Screen::displayCharacter(uint c)
if (charToCombineWithX < 0) { if (charToCombineWithX < 0) {
return; return;
} }
} while (!_screenLines.at(charToCombineWithY).at(charToCombineWithX).isRealCharacter); } while (_screenLines.at(charToCombineWithY).at(charToCombineWithX).isRightHalfOfDoubleWide());
Character &currentChar = _screenLines[charToCombineWithY][charToCombineWithX]; Character &currentChar = _screenLines[charToCombineWithY][charToCombineWithX];
if ((currentChar.rendition & RE_EXTENDED_CHAR) == 0) { if ((currentChar.rendition & RE_EXTENDED_CHAR) == 0) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment