Use mutex for TextBuffer state
This commit is contained in:
parent
a599d83ca0
commit
a21225c9a0
3 changed files with 17 additions and 18 deletions
|
|
@ -97,11 +97,12 @@ fn main() {
|
|||
let mut mouse_left = false;
|
||||
let mut rehit = false;
|
||||
loop {
|
||||
//TODO: do not use this
|
||||
buffer.shape_until_scroll();
|
||||
|
||||
let font_size = buffer.font_size();
|
||||
let line_height = buffer.line_height();
|
||||
|
||||
buffer.shape_until_scroll();
|
||||
|
||||
if rehit {
|
||||
let instant = Instant::now();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue