Quote:
Originally Posted by Barty
Is there a way to tell when the screen is done updating?
|
You can wait for an update to complete with the
wait function. So in
process_render_queue, instead of:
Code:
match context.fb.update(&rect, mode) {
…
}
you could write:
Code:
if mode == Update::Full && context.fb.inverted() && context.settings.frontlight {
context.set_frontlight(false);
// TODO: log the errors.
if let Ok(token) = context.fb.update(&rect, mode) {
context.fb.wait(token).ok();
}
context.set_frontlight(true);
} else {
match context.fb.update(&rect, mode) {
…
}
}