Remove lifetime from SwashCache
This commit is contained in:
parent
2b991129e3
commit
4e93853765
10 changed files with 53 additions and 32 deletions
|
|
@ -705,7 +705,7 @@ impl<'a> Buffer<'a> {
|
|||
None => color,
|
||||
};
|
||||
|
||||
cache.with_pixels(cache_key, glyph_color, |x, y, color| {
|
||||
cache.with_pixels(self.font_system, cache_key, glyph_color, |x, y, color| {
|
||||
f(x_int + x, run.line_y as i32 + y_int + y, 1, 1, color);
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue