mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 15:45:19 +00:00
Merge pull request #821 from lakkatv/lakka
(Lakka) theme font and theme switching
This commit is contained in:
commit
df005ba50a
@ -55,6 +55,7 @@ float global_alpha = 0;
|
||||
// Font variables
|
||||
void *font;
|
||||
const gl_font_renderer_t *font_driver;
|
||||
char font_path[PATH_MAX];
|
||||
|
||||
enum
|
||||
{
|
||||
@ -781,11 +782,13 @@ static void lakka_context_reset(void *data)
|
||||
if (!menu)
|
||||
return;
|
||||
|
||||
gl_font_init_first(&font_driver, &font, gl,
|
||||
*g_settings.video.font_path ? g_settings.video.font_path : NULL, g_settings.video.font_size);
|
||||
|
||||
fill_pathname_join(dirpath, g_settings.assets_directory, "lakka", sizeof(dirpath));
|
||||
fill_pathname_join(dirpath, g_settings.assets_directory, THEME, sizeof(dirpath));
|
||||
fill_pathname_slash(dirpath, sizeof(dirpath));
|
||||
|
||||
fill_pathname_join(font_path, dirpath, "font.ttf", sizeof(font_path));
|
||||
|
||||
gl_font_init_first(&font_driver, &font, gl, font_path, 32);
|
||||
|
||||
fill_pathname_join(textures[TEXTURE_BG].path, dirpath, "bg.png", sizeof(textures[TEXTURE_BG].path));
|
||||
fill_pathname_join(textures[TEXTURE_SETTINGS].path, dirpath, "settings.png", sizeof(textures[TEXTURE_SETTINGS].path));
|
||||
@ -811,7 +814,7 @@ static void lakka_context_reset(void *data)
|
||||
core_info_t *info;
|
||||
core_info_list_t *info_list;
|
||||
|
||||
fill_pathname_join(dirpath, g_settings.assets_directory, "lakka", sizeof(dirpath));
|
||||
fill_pathname_join(dirpath, g_settings.assets_directory, THEME, sizeof(dirpath));
|
||||
fill_pathname_slash(dirpath, sizeof(dirpath));
|
||||
|
||||
info_list = (core_info_list_t*)menu->core_info;
|
||||
|
@ -21,6 +21,7 @@
|
||||
#include "../../../gfx/gl_common.h"
|
||||
#include "../../../gfx/fonts/fonts.h"
|
||||
|
||||
#define THEME "flatui" // flatui or monochrome themes are available
|
||||
#define DELAY 0.02
|
||||
#define HSPACING 300
|
||||
#define VSPACING 75
|
||||
|
Loading…
x
Reference in New Issue
Block a user