Color alpha support. (#884)

This commit is contained in:
Arthur Sonzogni
2024-06-13 18:43:14 +02:00
committed by GitHub
parent d6a2049483
commit ff305147ca
8 changed files with 162 additions and 33 deletions

View File

@@ -423,7 +423,11 @@ std::string Screen::ToString() const {
if (!previous_fullwidth) {
UpdatePixelStyle(this, ss, *previous_pixel_ref, pixel);
previous_pixel_ref = &pixel;
ss << pixel.character;
if (pixel.character.empty()) {
ss << " ";
} else {
ss << pixel.character;
}
}
previous_fullwidth = (string_width(pixel.character) == 2);
}