diff --git a/gfx/drivers/gl_common.c b/gfx/drivers/gl_common.c index 2906ddfee3..dd22b07e7f 100644 --- a/gfx/drivers/gl_common.c +++ b/gfx/drivers/gl_common.c @@ -173,7 +173,7 @@ static INLINE bool realloc_checked(void **ptr, size_t size) return *ptr == nptr; } -bool gl_coord_array_add(gl_coord_array_t *ca, const gfx_coords_t *coords, unsigned count) +bool gl_coord_array_add(gfx_coord_array_t *ca, const gfx_coords_t *coords, unsigned count) { bool success = false; count = min(count, coords->vertices); @@ -216,7 +216,7 @@ bool gl_coord_array_add(gl_coord_array_t *ca, const gfx_coords_t *coords, unsign return success; } -void gl_coord_array_free(gl_coord_array_t *ca) +void gl_coord_array_free(gfx_coord_array_t *ca) { if (!ca->allocated) return; diff --git a/gfx/drivers/gl_common.h b/gfx/drivers/gl_common.h index 12767569bd..0792a1276f 100644 --- a/gfx/drivers/gl_common.h +++ b/gfx/drivers/gl_common.h @@ -224,16 +224,16 @@ typedef struct gl_mut_coords unsigned vertices; } gl_mut_coords_t; -typedef struct gl_coord_array +typedef struct gfx_coord_array { gl_mut_coords_t coords; unsigned allocated; -} gl_coord_array_t; +} gfx_coord_array_t; typedef struct gl_raster_block { bool fullscreen; - gl_coord_array_t carr; + gfx_coord_array_t carr; } gl_font_raster_block_t; struct gl_font_renderer; @@ -418,8 +418,8 @@ static INLINE unsigned gl_wrap_type_to_enum(enum gfx_wrap_type type) return 0; } -bool gl_coord_array_add(gl_coord_array_t *ca, const gfx_coords_t *coords, unsigned count); -void gl_coord_array_free(gl_coord_array_t *ca); +bool gl_coord_array_add(gfx_coord_array_t *ca, const gfx_coords_t *coords, unsigned count); +void gl_coord_array_free(gfx_coord_array_t *ca); void gl_ff_vertex(const void *data); void gl_ff_matrix(const void *data);