Moved the shape until cursor outside of the loop
This commit is contained in:
parent
16ebfcf6e6
commit
079778cbf9
1 changed files with 3 additions and 7 deletions
|
|
@ -98,7 +98,9 @@ fn main() {
|
||||||
let mut mouse_x = -1;
|
let mut mouse_x = -1;
|
||||||
let mut mouse_y = -1;
|
let mut mouse_y = -1;
|
||||||
let mut mouse_left = false;
|
let mut mouse_left = false;
|
||||||
let mut shape_me = true;
|
|
||||||
|
//Lets do this once and rely on events for the rest.
|
||||||
|
buffer.shape_until_cursor();
|
||||||
|
|
||||||
loop {
|
loop {
|
||||||
let font_size = buffer.metrics().font_size;
|
let font_size = buffer.metrics().font_size;
|
||||||
|
|
@ -106,12 +108,6 @@ fn main() {
|
||||||
|
|
||||||
let mut force_drag = true;
|
let mut force_drag = true;
|
||||||
|
|
||||||
//lets do this once and rely on the events to do the rest.
|
|
||||||
if shape_me {
|
|
||||||
buffer.shape_until_cursor();
|
|
||||||
shape_me = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
if buffer.redraw {
|
if buffer.redraw {
|
||||||
let instant = Instant::now();
|
let instant = Instant::now();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue