Remove needless casts

parent d5cd1ecd
......@@ -781,8 +781,8 @@ impl<Data: Deref<Target = [u8]>> FontInfo<Data> {
}
vertices.push(Vertex {
type_: CurveTo as u8,
x: sx as i16,
y: sy as i16,
x: sx,
y: sy,
cx: scx,
cy: scy,
});
......@@ -790,16 +790,16 @@ impl<Data: Deref<Target = [u8]>> FontInfo<Data> {
vertices.push(if was_off {
Vertex {
type_: CurveTo as u8,
x: sx as i16,
y: sy as i16,
x: sx,
y: sy,
cx,
cy,
}
} else {
Vertex {
type_: LineTo as u8,
x: sx as i16,
y: sy as i16,
x: sx,
y: sy,
cx: 0,
cy: 0,
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment