diff --git a/libretro-common/formats/bmp/rbmp_encode.c b/libretro-common/formats/bmp/rbmp_encode.c index 7d6d39dd40..fba423d355 100644 --- a/libretro-common/formats/bmp/rbmp_encode.c +++ b/libretro-common/formats/bmp/rbmp_encode.c @@ -138,7 +138,7 @@ static void dump_line_32_to_24(uint8_t *line, const uint32_t *src, unsigned widt } static void dump_content(RFILE *file, const void *frame, - int width, int height, int pitch, rbmp_source_type type) + int width, int height, int pitch, enum rbmp_source_type type) { uint8_t *line; size_t line_size; @@ -202,7 +202,7 @@ static void dump_content(RFILE *file, const void *frame, bool rbmp_save_image(const char *filename, const void *frame, unsigned width, unsigned height, - unsigned pitch, rbmp_source_type type) + unsigned pitch, enum rbmp_source_type type) { bool ret; RFILE *file = retro_fopen(filename, RFILE_MODE_WRITE, -1); diff --git a/libretro-common/include/formats/rbmp.h b/libretro-common/include/formats/rbmp.h index 0e9ba5b33c..e74d2b196e 100644 --- a/libretro-common/include/formats/rbmp.h +++ b/libretro-common/include/formats/rbmp.h @@ -29,20 +29,22 @@ extern "C" { #endif -typedef enum +enum rbmp_source_type { RBMP_SOURCE_TYPE_DONT_CARE, RBMP_SOURCE_TYPE_BGR24, RBMP_SOURCE_TYPE_XRGB888, RBMP_SOURCE_TYPE_RGB565, RBMP_SOURCE_TYPE_ARGB8888 -} rbmp_source_type; +}; bool rbmp_save_image( const char *filename, const void *frame, - unsigned width, unsigned height, - unsigned pitch, rbmp_source_type type); + unsigned width, + unsigned height, + unsigned pitch, + enum rbmp_source_type type); #ifdef __cplusplus }