From bb07b5a7a9c4b90f1fee5199e5709a09b0ab855f Mon Sep 17 00:00:00 2001 From: KitsuneAlex Date: Fri, 3 May 2024 02:29:08 +0200 Subject: [PATCH] Fix wrong identifier formatting for some API function parameters --- core/msdfgen_c.cpp | 8 ++++---- msdfgen_c.h | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/core/msdfgen_c.cpp b/core/msdfgen_c.cpp index a2cb177..a28bdc0 100644 --- a/core/msdfgen_c.cpp +++ b/core/msdfgen_c.cpp @@ -274,12 +274,12 @@ MSDF_API int msdf_shape_bound(msdf_shape_handle shape, msdf_bounds_t* bounds) { MSDF_API int msdf_shape_bound_miters(msdf_shape_handle shape, msdf_bounds_t* bounds, const double border, - const double miterLimit, + const double miter_limit, const int polarity) { if(shape == nullptr || bounds == nullptr) { return MSDF_ERR_INVALID_ARG; } - reinterpret_cast(shape)->boundMiters(bounds->l, bounds->b, bounds->r, bounds->t, border, miterLimit, polarity); + reinterpret_cast(shape)->boundMiters(bounds->l, bounds->b, bounds->r, bounds->t, border, miter_limit, polarity); return MSDF_SUCCESS; } @@ -332,12 +332,12 @@ MSDF_API int msdf_contour_bound(msdf_contour_handle contour, msdf_bounds_t* boun MSDF_API int msdf_contour_bound_miters(msdf_contour_handle contour, msdf_bounds_t* bounds, const double border, - const double miterLimit, + const double miter_limit, const int polarity) { if(contour == nullptr || bounds == nullptr) { return MSDF_ERR_INVALID_ARG; } - reinterpret_cast(contour)->boundMiters(bounds->l, bounds->b, bounds->r, bounds->t, border, miterLimit, polarity); + reinterpret_cast(contour)->boundMiters(bounds->l, bounds->b, bounds->r, bounds->t, border, miter_limit, polarity); return MSDF_SUCCESS; } diff --git a/msdfgen_c.h b/msdfgen_c.h index e926ffe..e8e621b 100644 --- a/msdfgen_c.h +++ b/msdfgen_c.h @@ -151,7 +151,7 @@ MSDF_API int msdf_shape_has_inverse_y_axis(msdf_shape_handle shape, int* inverse MSDF_API int msdf_shape_normalize(msdf_shape_handle shape); MSDF_API int msdf_shape_validate(msdf_shape_handle shape, int* result); MSDF_API int msdf_shape_bound(msdf_shape_handle shape, msdf_bounds_t* bounds); -MSDF_API int msdf_shape_bound_miters(msdf_shape_handle shape, msdf_bounds_t* bounds, double border, double miterLimit, int polarity); +MSDF_API int msdf_shape_bound_miters(msdf_shape_handle shape, msdf_bounds_t* bounds, double border, double miter_limit, int polarity); MSDF_API void msdf_shape_free(msdf_shape_handle shape); MSDF_API int msdf_contour_alloc(msdf_contour_handle* contour); @@ -159,7 +159,7 @@ MSDF_API int msdf_contour_add_edge(msdf_contour_handle contour, msdf_edge_holder MSDF_API int msdf_contour_get_edge_count(msdf_contour_handle contour, size_t* edge_count); MSDF_API int msdf_contour_get_edge(msdf_contour_handle contour, size_t index, msdf_edge_holder_handle* edge); MSDF_API int msdf_contour_bound(msdf_contour_handle contour, msdf_bounds_t* bounds); -MSDF_API int msdf_contour_bound_miters(msdf_contour_handle contour, msdf_bounds_t* bounds, double border, double miterLimit, int polarity); +MSDF_API int msdf_contour_bound_miters(msdf_contour_handle contour, msdf_bounds_t* bounds, double border, double miter_limit, int polarity); MSDF_API int msdf_contour_get_winding(msdf_contour_handle contour, int* winding); MSDF_API int msdf_contour_reverse(msdf_contour_handle contour); MSDF_API void msdf_contour_free(msdf_contour_handle contour);