gg: add scaling to draw_empty_poly() (#11272)
parent
1cfc4198f5
commit
352df873d5
|
@ -668,9 +668,9 @@ pub fn (ctx &Context) draw_empty_poly(points []f32, c gx.Color) {
|
|||
|
||||
sgl.begin_line_strip()
|
||||
for i in 0 .. len {
|
||||
sgl.v2f(points[2 * i], points[2 * i + 1])
|
||||
sgl.v2f(points[2 * i] * ctx.scale, points[2 * i + 1] * ctx.scale)
|
||||
}
|
||||
sgl.v2f(points[0], points[1])
|
||||
sgl.v2f(points[0] * ctx.scale, points[1] * ctx.scale)
|
||||
sgl.end()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue