Skip to content

Commit

Permalink
Merge pull request #67 from lyonbeckers/ellipse-origin
Browse files Browse the repository at this point in the history
Rename center to origin in ellipse function params
  • Loading branch information
boozook authored Sep 19, 2023
2 parents 18995cc + 2716b64 commit d4a2fe1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/graphics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,7 @@ impl Graphics {

pub fn draw_ellipse(
&self,
center: ScreenPoint,
origin: ScreenPoint,
size: ScreenSize,
line_width: i32,
start_angle: f32,
Expand All @@ -724,8 +724,8 @@ impl Graphics {
) -> Result<(), Error> {
pd_func_caller!(
(*self.0).drawEllipse,
center.x,
center.y,
origin.x,
origin.y,
size.width,
size.height,
line_width,
Expand All @@ -739,7 +739,7 @@ impl Graphics {
&self,
target: OptionalBitmap,
stencil: OptionalBitmap,
center: ScreenPoint,
origin: ScreenPoint,
size: ScreenSize,
line_width: i32,
start_angle: f32,
Expand All @@ -749,8 +749,8 @@ impl Graphics {
) -> Result<(), Error> {
pd_func_caller!(
(*self.0).fillEllipse,
center.x,
center.y,
origin.x,
origin.y,
size.width,
size.height,
start_angle,
Expand Down

0 comments on commit d4a2fe1

Please sign in to comment.