plotters-rs / plotters-piston

Plotters piston window backend
MIT License
13 stars 13 forks source link

Use window-framebuffer scale when drawing circles #8

Open eviltak opened 2 years ago

eviltak commented 2 years ago

PistonBackend::draw_circle fails to take into account self.scale when creating the rect to draw the circle into. This causes the position and size of the drawn circle to be off if the framebuffer size is not equal to the window size.