mirror of
https://github.com/libretro/RetroArch
synced 2025-04-02 07:20:34 +00:00
commit
3be93bf132
@ -22,6 +22,7 @@
|
|||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
|
vita_video_t *vita;
|
||||||
vita2d_texture *texture;
|
vita2d_texture *texture;
|
||||||
const font_renderer_driver_t *font_driver;
|
const font_renderer_driver_t *font_driver;
|
||||||
void *font_data;
|
void *font_data;
|
||||||
@ -29,7 +30,7 @@ typedef struct
|
|||||||
} vita_font_t;
|
} vita_font_t;
|
||||||
|
|
||||||
|
|
||||||
static void *vita2d_font_init_font(void *gl_data, const char *font_path, float font_size)
|
static void *vita2d_font_init_font(void *data, const char *font_path, float font_size)
|
||||||
{
|
{
|
||||||
unsigned int stride, pitch, j, k;
|
unsigned int stride, pitch, j, k;
|
||||||
const uint8_t *frame32 = NULL;
|
const uint8_t *frame32 = NULL;
|
||||||
@ -39,6 +40,8 @@ static void *vita2d_font_init_font(void *gl_data, const char *font_path, float f
|
|||||||
|
|
||||||
if (!font)
|
if (!font)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
font->vita = (vita_video_t*)data;
|
||||||
|
|
||||||
if (!font_renderer_create_default((const void**)&font->font_driver,
|
if (!font_renderer_create_default((const void**)&font->font_driver,
|
||||||
&font->font_data, font_path, font_size))
|
&font->font_data, font_path, font_size))
|
||||||
@ -211,7 +214,8 @@ static void vita2d_font_render_message(
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
line_height = scale / font->font_driver->get_line_height(font->font_data);
|
line_height = font->font_driver->get_line_height(font->font_data) *
|
||||||
|
scale / font->vita->vp.height;
|
||||||
|
|
||||||
for (;;)
|
for (;;)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user