Commit a10abcc6 authored by hpi1's avatar hpi1

Fix type

parent bb09a2e6
......@@ -929,7 +929,7 @@ static int _textst_style_select(GRAPHICS_CONTROLLER *p, int user_style_idx)
return -1;
}
int gc_add_font(GRAPHICS_CONTROLLER *p, void *data, int64_t size)
int gc_add_font(GRAPHICS_CONTROLLER *p, void *data, size_t size)
{
if (!p) {
return -1;
......
......@@ -25,6 +25,7 @@
#include "libbluray/bdnav/uo_mask_table.h"
#include <stdint.h>
#include <stddef.h> /* size_t */
/*
*
......@@ -131,6 +132,6 @@ BD_PRIVATE int gc_run(GRAPHICS_CONTROLLER *p,
*/
BD_PRIVATE int gc_add_font(GRAPHICS_CONTROLLER *p,
void *data, int64_t size);
void *data, size_t size);
#endif // _GRAPHICS_CONTROLLER_H_
......@@ -110,7 +110,7 @@ void textst_render_free(TEXTST_RENDER **pp)
* settings
*/
int textst_render_add_font(TEXTST_RENDER *p, void *data, int64_t size)
int textst_render_add_font(TEXTST_RENDER *p, void *data, size_t size)
{
#ifdef HAVE_FT2
FONT_DATA *tmp = realloc(p->font, sizeof(*(p->font)) * (p->font_count + 1));
......
......@@ -52,7 +52,7 @@ BD_PRIVATE void textst_render_free(TEXTST_RENDER **pp);
*
*/
BD_PRIVATE int textst_render_add_font(TEXTST_RENDER *p, void *data, int64_t size);
BD_PRIVATE int textst_render_add_font(TEXTST_RENDER *p, void *data, size_t size);
BD_PRIVATE int textst_render_set_char_code(TEXTST_RENDER *p, int char_code);
BD_PRIVATE int textst_render(TEXTST_RENDER *p,
TEXTST_BITMAP *bmp,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment