mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-09-17 16:38:09 +08:00
Color alpha support. (#884)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user