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