Skip to content

Commit

Permalink
arc -> circle
Browse files Browse the repository at this point in the history
  • Loading branch information
pierreguillot committed Mar 18, 2015
1 parent 2433bc4 commit b3f7f16
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions Sources/hoa.scope_gui_tilde.cpp
Expand Up @@ -176,7 +176,7 @@ static void draw_background(t_hoa_scope *x, t_object *view, t_rect *rect)
egraphics_line_to(g, x2, y2);
egraphics_set_line_width(g, 3);
egraphics_set_color_rgba(g, &white);
egraphics_stroke(g);
egraphics_stroke_preserve(g);
egraphics_set_color_rgba(g, &black);
egraphics_set_line_width(g, 1);
egraphics_stroke(g);
Expand All @@ -187,7 +187,7 @@ static void draw_background(t_hoa_scope *x, t_object *view, t_rect *rect)
egraphics_set_line_width(g, 3);
egraphics_set_color_rgba(g, &white);
egraphics_circle(g, 0, 0, (double)i * 0.2 * x->f_radius);
egraphics_stroke(g);
egraphics_stroke_preserve(g);
egraphics_set_line_width(g, 1);
egraphics_set_color_rgba(g, &black);
egraphics_stroke(g);
Expand Down Expand Up @@ -557,7 +557,7 @@ static void draw_harmonics(t_hoa_scope_3d *x, t_object *view, t_rect *rect)
egraphics_line_to(g, x2, y2);
egraphics_set_line_width(g, 3);
egraphics_set_color_rgba(g, &white);
egraphics_stroke(g);
egraphics_stroke_preserve(g);
egraphics_set_color_rgba(g, &black);
egraphics_set_line_width(g, 1);
egraphics_stroke(g);
Expand All @@ -568,7 +568,7 @@ static void draw_harmonics(t_hoa_scope_3d *x, t_object *view, t_rect *rect)
egraphics_set_line_width(g, 3);
egraphics_set_color_rgba(g, &white);
egraphics_circle(g, 0, 0, (double)i * 0.2 * x->f_radius);
egraphics_stroke(g);
egraphics_stroke_preserve(g);
egraphics_set_line_width(g, 1);
egraphics_set_color_rgba(g, &black);
egraphics_stroke(g);
Expand Down
8 changes: 4 additions & 4 deletions Sources/hoa.space_gui.cpp
Expand Up @@ -339,7 +339,7 @@ void draw_background(t_hoa_space *x, t_object *view, t_rect *rect)
egraphics_line_to(g, x2, y2);
egraphics_set_line_width(g, 3);
egraphics_set_color_rgba(g, &white);
egraphics_stroke(g);
egraphics_stroke_preserve(g);

egraphics_set_color_rgba(g, &black);
egraphics_set_line_width(g, 1);
Expand All @@ -349,10 +349,10 @@ void draw_background(t_hoa_space *x, t_object *view, t_rect *rect)

for(int i = 5; i > 0; i--)
{
egraphics_arc(g, 0, 0, (double)i * 0.2 * x->f_radius, 0., HOA_2PI);
egraphics_circle(g, 0, 0, (double)i * 0.2 * x->f_radius);
egraphics_set_line_width(g, 3);
egraphics_set_color_rgba(g, &white);
egraphics_stroke(g);
egraphics_stroke_preserve(g);

egraphics_set_line_width(g, 1);
egraphics_set_color_rgba(g, &black);
Expand Down Expand Up @@ -440,7 +440,7 @@ void draw_points(t_hoa_space *x, t_object *view, t_rect *rect)
angle -= HOA_2PI / (double)x->f_number_of_channels;
abscissa = Math<float>::abscissa(radius, angle);
ordinate = Math<float>::ordinate(radius, angle);
egraphics_arc(g, abscissa, ordinate, 3., 0., HOA_2PI);
egraphics_circle(g, abscissa, ordinate, 3.);
egraphics_fill(g);
}

Expand Down

0 comments on commit b3f7f16

Please sign in to comment.