Skip to content

Commit

Permalink
though it can't be inline, linker requires it
Browse files Browse the repository at this point in the history
all this shall change though eventually so I'm not going to take more time to figure it out
  • Loading branch information
ssj71 committed Apr 15, 2019
1 parent 4e772fb commit 28b4054
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/draw/draw_silverDial.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ inline int cairo_code_draw_silverDial_get_height()
{
return 77;
}
void cairo_code_draw_silverDial_render(cairo_t *cr, float val)
inline void cairo_code_draw_silverDial_render(cairo_t *cr, float val)
{
cairo_pattern_t *pattern;
cairo_matrix_t matrix;
Expand Down
14 changes: 7 additions & 7 deletions src/draw/draw_squareDial.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ inline int cairo_code_draw_squareDial_get_height()
{
return 88;
}
void cairo_code_draw_squareDial_render(cairo_t *cr, int ccw, float r, float g, float b, float val)
inline void cairo_code_draw_squareDial_render(cairo_t *cr, int ccw, float r, float g, float b, float val)
{
cairo_pattern_t *pattern;

Expand Down Expand Up @@ -69,32 +69,32 @@ void cairo_code_draw_squareDial_render(cairo_t *cr, int ccw, float r, float g, f
cairo_stroke_preserve(cr);
/********************/
}
void cairo_code_draw_squareDialr_render(cairo_t *cr, float val)
inline void cairo_code_draw_squareDialr_render(cairo_t *cr, float val)
{
cairo_code_draw_squareDial_render(cr, 0, 1, 0, 0, val);
}

void cairo_code_draw_squareDialbccw_render(cairo_t *cr, float val)
inline void cairo_code_draw_squareDialbccw_render(cairo_t *cr, float val)
{
cairo_code_draw_squareDial_render(cr, 1, 0, 0, 1, val);
}

void cairo_code_draw_squareDialgccw_render(cairo_t *cr, float val)
inline void cairo_code_draw_squareDialgccw_render(cairo_t *cr, float val)
{
cairo_code_draw_squareDial_render(cr, 1, 0, 0.88235, 0, val);
}

void cairo_code_draw_squareDialo_render(cairo_t *cr, float val)
inline void cairo_code_draw_squareDialo_render(cairo_t *cr, float val)
{
cairo_code_draw_squareDial_render(cr, 0, 1, .33333, 0, val);
}

void cairo_code_draw_squareDialy_render(cairo_t *cr, float val)
inline void cairo_code_draw_squareDialy_render(cairo_t *cr, float val)
{
cairo_code_draw_squareDial_render(cr, 0, 0.92157, 0.92157, 0, val);
}

void cairo_code_draw_squareDialpccw_render(cairo_t *cr, float val)
inline void cairo_code_draw_squareDialpccw_render(cairo_t *cr, float val)
{
cairo_code_draw_squareDial_render(cr, 1, 0.78431, 0, 1, val);
}
Expand Down

0 comments on commit 28b4054

Please sign in to comment.