예제 #1
0
static void zarch_context_reset(void *data)
{
   menu_display_ctx_font_t font_info;
   settings_t *settings  = config_get_ptr();
   zui_t          *zui   = (zui_t*)data;

   if (!zui || !settings)
      return;

   font_info.path    = NULL;
   font_info.size    = zui->font_size;

   if (settings->video.font_enable)
      font_info.path = settings->path.font;

   if (!menu_display_ctl(MENU_DISPLAY_CTL_FONT_MAIN_INIT, &font_info))
      RARCH_WARN("Failed to load font.");

   zarch_context_bg_destroy(zui);

   rarch_task_push_image_load(settings->path.menu_wallpaper,
         "cb_menu_wallpaper", menu_display_handle_wallpaper_upload, NULL);

   menu_display_allocate_white_texture();

   menu_display_ctl(MENU_DISPLAY_CTL_SET_FONT_SIZE, &zui->font_size);
   zarch_zui_font();
}
예제 #2
0
파일: zarch.c 프로젝트: KitoHo/RetroArch
static void zarch_context_reset(void *data)
{
   menu_display_ctx_font_t font_info;
   settings_t *settings  = config_get_ptr();
   zui_t          *zui   = (zui_t*)data;

   if (!zui || !settings)
      return;

   font_info.path    = NULL;
   font_info.size    = zui->font_size;

   if (settings->video.font_enable)
      font_info.path = settings->path.font;

   if (!menu_display_font_main_init(&font_info))
      RARCH_WARN("Failed to load font.");

   zarch_context_bg_destroy(zui);

   task_push_image_load(settings->path.menu_wallpaper,
         MENU_ENUM_LABEL_CB_MENU_WALLPAPER,
         menu_display_handle_wallpaper_upload, NULL);

   menu_display_allocate_white_texture();

   menu_display_set_font_size(zui->font_size);
   menu_display_font(APPLICATION_SPECIAL_DIRECTORY_ASSETS_ZARCH_FONT);
}
예제 #3
0
static void zarch_context_reset(void *data)
{
   settings_t *settings  = config_get_ptr();
   zui_t          *zui   = (zui_t*)data;

   if (!zui || !settings)
      return;

   zarch_context_bg_destroy(zui);

   task_push_image_load(settings->path.menu_wallpaper,
         menu_display_handle_wallpaper_upload, NULL);

   menu_display_allocate_white_texture();

   menu_display_set_header_height(zui->header_height);
   zui->font = menu_display_font(APPLICATION_SPECIAL_DIRECTORY_ASSETS_ZARCH_FONT, zui->font_size);
}