fix canvas

This commit is contained in:
Sebastian Köln 2019-07-16 09:55:01 +03:00
parent ed1d75fdc6
commit e12821350e
1 changed files with 2 additions and 2 deletions

View File

@ -102,11 +102,11 @@ impl CanvasRenderingContext2D {
TextMetrics { width: self.layout_text(string).width() }
}
pub fn fill_layout(&mut self, layout: &Layout, transform: Transform2DF) {
pub fn fill_layout(&mut self, layout: &Layout, transform: Transform2F) {
let paint_id = self.scene.push_paint(&self.current_state.fill_paint);
drop(self.scene.push_layout(&layout,
&TextStyle { size: self.current_state.font_size },
&transform.post_mul(&self.current_state.transform),
&(transform * self.current_state.transform),
TextRenderMode::Fill,
HintingOptions::None,
paint_id));