Fix wrong identifier formatting for some API function parameters

This commit is contained in:
KitsuneAlex 2024-05-03 02:29:08 +02:00
parent c565b18e9d
commit bb07b5a7a9
No known key found for this signature in database
GPG Key ID: 6B0CE864BB69B7D0
2 changed files with 6 additions and 6 deletions

View File

@ -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<msdfgen::Shape*>(shape)->boundMiters(bounds->l, bounds->b, bounds->r, bounds->t, border, miterLimit, polarity);
reinterpret_cast<msdfgen::Shape*>(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<msdfgen::Contour*>(contour)->boundMiters(bounds->l, bounds->b, bounds->r, bounds->t, border, miterLimit, polarity);
reinterpret_cast<msdfgen::Contour*>(contour)->boundMiters(bounds->l, bounds->b, bounds->r, bounds->t, border, miter_limit, polarity);
return MSDF_SUCCESS;
}

View File

@ -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);