Update init signature

This commit is contained in:
twinaphex 2015-03-30 00:48:43 +02:00
parent c849c6bcdf
commit 66198fffb6
4 changed files with 5 additions and 5 deletions

View File

@ -26,13 +26,13 @@ typedef struct
} d3dfonts_t;
static void *d3dfonts_w32_init_font(void *video_data,
const char *font_path, unsigned font_size)
const char *font_path, float font_size)
{
uint32_t r, g, b;
d3dfonts_t *d3dfonts = NULL;
settings_t *settings = config_get_ptr();
D3DXFONT_DESC desc = {
static_cast<int>(font_size), 0, 400, 0,
(int)(font_size), 0, 400, 0,
false, DEFAULT_CHARSET,
OUT_TT_PRECIS,
CLIP_DEFAULT_PRECIS,

View File

@ -26,7 +26,7 @@ typedef struct
} xfonts_t;
static void *xfonts_init_font(void *video_data,
const char *font_path, unsigned font_size)
const char *font_path, float font_size)
{
xfonts_t *xfonts = (xfonts_t*)calloc(1, sizeof(*xfont));

View File

@ -176,7 +176,7 @@ static HRESULT xdk360_video_font_create_shaders(xdk360_video_font_t * font)
}
static void *xdk360_init_font(void *video_data,
const char *font_path, unsigned font_size)
const char *font_path, float font_size)
{
unsigned long dwFileVersion;
const void *pFontData = NULL;

View File

@ -27,7 +27,7 @@ extern "C" {
typedef struct d3d_font_renderer
{
void *(*init)(void *data, const char *font_path, unsigned font_size);
void *(*init)(void *data, const char *font_path, float font_size);
void (*free)(void *data);
void (*render_msg)(void *data, const char *msg,
const void *params);