From 28b405414a5d044e576ab00b75ceaa1c0a7b8929 Mon Sep 17 00:00:00 2001 From: Spencer Date: Mon, 15 Apr 2019 11:27:15 -0600 Subject: [PATCH] though it can't be inline, linker requires it all this shall change though eventually so I'm not going to take more time to figure it out --- src/draw/draw_silverDial.h | 2 +- src/draw/draw_squareDial.h | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/draw/draw_silverDial.h b/src/draw/draw_silverDial.h index 4aadf57..d12292f 100644 --- a/src/draw/draw_silverDial.h +++ b/src/draw/draw_silverDial.h @@ -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; diff --git a/src/draw/draw_squareDial.h b/src/draw/draw_squareDial.h index c1deadd..f288663 100644 --- a/src/draw/draw_squareDial.h +++ b/src/draw/draw_squareDial.h @@ -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; @@ -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); }