Beispiel #1
0
static void nk_menu_context_destroy(void *data)
{
   unsigned i;
   nk_menu_handle_t *nk   = (nk_menu_handle_t*)data;

   if (!nk)
      return;

   for (i = 0; i < NK_TEXTURE_LAST; i++)
      video_driver_texture_unload((uintptr_t*)&nk->textures.list[i]);

   menu_display_font_main_deinit();
   wimp_context_bg_destroy(nk);
}
Beispiel #2
0
bool menu_display_font_main_init(menu_display_ctx_font_t *font)
{
   menu_display_font_main_deinit();
   if (!font || !menu_disp)
      return false;

   if (!menu_disp->font_init_first)
      return false;

   if (!menu_disp->font_init_first(&menu_display_font_buf,
            video_driver_get_ptr(false),
            font->path, font->size))
      return false;

   menu_display_font_size = font->size;
   return true;
}
Beispiel #3
0
static void zarch_context_destroy(void *data)
{
   menu_display_font_main_deinit();
   zarch_context_bg_destroy(data);
}