diff --git a/include/themes.h b/include/themes.h index 2c5952f..88ef7ef 100644 --- a/include/themes.h +++ b/include/themes.h @@ -30,9 +30,9 @@ #include "common.h" typedef struct { - u16 name[0x80]; - u16 desc[0x100]; - u16 author[0x80]; + u16 name[0x40]; + u16 desc[0x80]; + u16 author[0x40]; bool has_icon; ssize_t icon_id; diff --git a/source/draw.c b/source/draw.c index f4f4973..faae08a 100644 --- a/source/draw.c +++ b/source/draw.c @@ -125,9 +125,17 @@ void draw_theme_interface(Theme_s * themes_list, int theme_count, int selected_t { draw_base_interface(); pp2d_draw_text_center(GFX_TOP, 4, 0.5, 0.5, COLOR_WHITE, "Theme mode"); - wchar_t title[0x80] = {0}; - utf16_to_utf32((u32*)title, current_theme.name, 0x80); + wchar_t title[0x40] = {0}; + utf16_to_utf32((u32*)title, current_theme.name, 0x40); pp2d_draw_wtext(20, 30, 0.7, 0.7, COLOR_WHITE, title); + wchar_t author[0x40] = {0}; + utf16_to_utf32((u32*)author, current_theme.author, 0x40); + pp2d_draw_text(20, 50, 0.5, 0.5, COLOR_WHITE, "By: "); + pp2d_draw_wtext(44, 50, 0.5, 0.5, COLOR_WHITE, author); + wchar_t description[0x80] = {0}; + utf16_to_utf32((u32*)description, current_theme.desc, 0x80); + pp2d_draw_wtext(20, 65, 0.5, 0.5, COLOR_WHITE, description); + pp2d_draw_on(GFX_BOTTOM);