Eckpunkt ziehen: Projekt aendert sich erst beim Setzen (bis dahin nur Vorschau); native Chunk-Updates senden nur geaenderte Blocke statt des ganzen Puffers
This commit is contained in:
1 parent
f0906b88b3
commit
27fb681f7c
6 files changed
+289
-21
No files matched your search
@@ -232,3 +232,11 @@ pub fn set_texts(app: &AppHandle, upsert: Vec<TextIn>, remove: Vec<u32>) -> bool
|
||||
None => false,
|
||||
}
|
||||
}
|
||||
|
||||
/// Geaenderte Bereiche eines Puffers einspielen und ihn unter neuer ID fuehren.
|
||||
pub fn patch(app: &AppHandle, from: u32, to: u32, ranges: &[(u64, u64)], bytes: &[u8]) -> bool {
|
||||
match app.state::<EmbedState>().0.lock().unwrap().as_mut() {
|
||||
Some(e) => e.renderer.patch(&e.queue, from, to, ranges, bytes),
|
||||
None => false,
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user