mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2024-12-05 01:11:46 +08:00
Correct the title highlighting of hbox grabing to top border
This commit is contained in:
parent
9a94abc31d
commit
907e146385
@ -67,19 +67,16 @@ class Text : public Node {
|
||||
}
|
||||
screen.PixelAt(x, y).character = cell;
|
||||
|
||||
++x;
|
||||
}
|
||||
|
||||
if (!has_selection) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Invert the selection
|
||||
for(int x = selection_start_; x <= selection_end_; x++) {
|
||||
if (has_selection) {
|
||||
if((x >= selection_start_) && (x <= selection_end_)) {
|
||||
screen.PixelAt(x, y).inverted = true;
|
||||
}
|
||||
}
|
||||
|
||||
++x;
|
||||
}
|
||||
}
|
||||
|
||||
private:
|
||||
std::string text_;
|
||||
bool has_selection = false;
|
||||
|
Loading…
Reference in New Issue
Block a user