Skip to content

Commit 6937491

Browse files
TRDarioSiegeLord
authored andcommitted
Allow const in spline functions
1 parent be7545b commit 6937491

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

addons/primitives/allegro5/allegro_primitives.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,8 @@ ALLEGRO_PRIM_FUNC(void, al_draw_arc, (float cx, float cy, float r, float start_t
227227
ALLEGRO_PRIM_FUNC(void, al_draw_elliptical_arc, (float cx, float cy, float rx, float ry, float start_theta, float delta_theta, ALLEGRO_COLOR color, float thickness));
228228
ALLEGRO_PRIM_FUNC(void, al_draw_pieslice, (float cx, float cy, float r, float start_theta, float delta_theta, ALLEGRO_COLOR color, float thickness));
229229

230-
ALLEGRO_PRIM_FUNC(void, al_calculate_spline, (float* dest, int stride, float points[8], float thickness, int num_segments));
231-
ALLEGRO_PRIM_FUNC(void, al_draw_spline, (float points[8], ALLEGRO_COLOR color, float thickness));
230+
ALLEGRO_PRIM_FUNC(void, al_calculate_spline, (float* dest, int stride, const float points[8], float thickness, int num_segments));
231+
ALLEGRO_PRIM_FUNC(void, al_draw_spline, (const float points[8], ALLEGRO_COLOR color, float thickness));
232232

233233
ALLEGRO_PRIM_FUNC(void, al_calculate_ribbon, (float* dest, int dest_stride, const float *points, int points_stride, float thickness, int num_segments));
234234
ALLEGRO_PRIM_FUNC(void, al_draw_ribbon, (const float *points, int points_stride, ALLEGRO_COLOR color, float thickness, int num_segments));

addons/primitives/high_primitives.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1001,7 +1001,7 @@ void al_draw_filled_rounded_rectangle(float x1, float y1, float x2, float y2,
10011001

10021002
/* Function: al_calculate_spline
10031003
*/
1004-
void al_calculate_spline(float* dest, int stride, float points[8],
1004+
void al_calculate_spline(float* dest, int stride, const float points[8],
10051005
float thickness, int num_segments)
10061006
{
10071007
/* Derivatives of x(t) and y(t). */
@@ -1080,7 +1080,7 @@ void al_calculate_spline(float* dest, int stride, float points[8],
10801080

10811081
/* Function: al_draw_spline
10821082
*/
1083-
void al_draw_spline(float points[8], ALLEGRO_COLOR color, float thickness)
1083+
void al_draw_spline(const float points[8], ALLEGRO_COLOR color, float thickness)
10841084
{
10851085
int ii;
10861086
float scale = get_scale();

0 commit comments

Comments
 (0)