mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-09-17 16:38:09 +08:00
Fix for Canvas::DrawText() draws nothing if the start coordinate is out of bounds.
This commit is contained in:
@@ -802,6 +802,7 @@ void Canvas::DrawText(int x,
|
||||
const Stylizer& style) {
|
||||
for (const auto& it : Utf8ToGlyphs(value)) {
|
||||
if (!IsIn(x, y)) {
|
||||
x += 2;
|
||||
continue;
|
||||
}
|
||||
Cell& cell = storage_[XY{x / 2, y / 4}];
|
||||
|
Reference in New Issue
Block a user