CXX_BUILD fixes
This commit is contained in:
parent
56d427df65
commit
aca8970e79
|
@ -223,7 +223,7 @@ static void *font_renderer_ft_init(const char *font_path, float font_size)
|
||||||
calloc(handle->atlas.width * handle->atlas.height, 1);
|
calloc(handle->atlas.width * handle->atlas.height, 1);
|
||||||
|
|
||||||
if (!handle->atlas.buffer)
|
if (!handle->atlas.buffer)
|
||||||
return false;
|
goto error;
|
||||||
|
|
||||||
if (!font_renderer_create_atlas(handle))
|
if (!font_renderer_create_atlas(handle))
|
||||||
goto error;
|
goto error;
|
||||||
|
|
|
@ -879,7 +879,7 @@ static void zarch_frame(void *data)
|
||||||
|
|
||||||
zui->tmp_block.carr.coords.vertices = 0;
|
zui->tmp_block.carr.coords.vertices = 0;
|
||||||
|
|
||||||
menu_display_font_bind_block(zui->font, &zui->tmp_block);
|
menu_display_font_bind_block((font_data_t*)zui->font, &zui->tmp_block);
|
||||||
|
|
||||||
menu_display_push_quad(zui->width, zui->height, zui_bg_screen,
|
menu_display_push_quad(zui->width, zui->height, zui_bg_screen,
|
||||||
0, 0, zui->width, zui->height);
|
0, 0, zui->width, zui->height);
|
||||||
|
@ -957,7 +957,7 @@ static void zarch_frame(void *data)
|
||||||
|
|
||||||
zui->rendering = false;
|
zui->rendering = false;
|
||||||
|
|
||||||
menu_display_font_flush_block(zui->font);
|
menu_display_font_flush_block((font_data_t*)zui->font);
|
||||||
menu_display_unset_viewport();
|
menu_display_unset_viewport();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1026,7 +1026,7 @@ static void zarch_context_destroy(void *data)
|
||||||
if (!zui)
|
if (!zui)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
menu_display_font_free(zui->font);
|
menu_display_font_free((font_data_t*)zui->font);
|
||||||
zarch_context_bg_destroy(data);
|
zarch_context_bg_destroy(data);
|
||||||
|
|
||||||
zui->font = NULL;
|
zui->font = NULL;
|
||||||
|
|
Loading…
Reference in New Issue