Draw does not need mutable buffer
This commit is contained in:
parent
330a736136
commit
5d7dd59078
1 changed files with 1 additions and 1 deletions
|
|
@ -843,7 +843,7 @@ impl<'a> TextBuffer<'a> {
|
|||
|
||||
/// Draw the buffer
|
||||
#[cfg(feature = "swash")]
|
||||
pub fn draw<F>(&mut self, cache: &mut crate::SwashCache, color: u32, mut f: F)
|
||||
pub fn draw<F>(&self, cache: &mut crate::SwashCache, color: u32, mut f: F)
|
||||
where F: FnMut(i32, i32, u32, u32, u32)
|
||||
{
|
||||
let font_size = self.metrics.font_size;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue