File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 158158#ifndef RG_SCREEN_VISIBLE_AREA
159159#define RG_SCREEN_VISIBLE_AREA {0, 0, 0, 0}
160160#endif
161+
162+ #ifndef RG_LANG_DEFAULT
163+ #define RG_LANG_DEFAULT RG_LANG_EN
164+ #endif
165+
166+ #ifndef RG_FONT_DEFAULT
167+ #define RG_FONT_DEFAULT RG_FONT_VERA_11
168+ #endif
Original file line number Diff line number Diff line change 2020 RG_FONT_VERA_11 ,
2121 RG_FONT_VERA_14 ,
2222 RG_FONT_MAX ,
23-
24- RG_FONT_DEFAULT = RG_FONT_VERA_11 ,
2523};
2624
2725static const rg_font_t * fonts [RG_FONT_MAX ] = {
Original file line number Diff line number Diff line change @@ -109,8 +109,8 @@ void rg_gui_init(void)
109109 gui .margins = (__typeof__ (gui .margins ))RG_SCREEN_SAFE_AREA ;
110110 gui .draw_buffer = get_draw_buffer (gui .screen_width , 18 , C_BLACK );
111111 gui .show_clock = rg_settings_get_boolean (NS_GLOBAL , SETTING_CLOCK , false);
112- if (!rg_gui_set_language_id (rg_settings_get_number (NS_GLOBAL , SETTING_LANGUAGE , RG_LANG_EN )))
113- rg_gui_set_language_id (RG_LANG_EN );
112+ if (!rg_gui_set_language_id (rg_settings_get_number (NS_GLOBAL , SETTING_LANGUAGE , RG_LANG_DEFAULT )))
113+ rg_gui_set_language_id (0 );
114114 if (!rg_gui_set_font (rg_settings_get_number (NS_GLOBAL , SETTING_FONTTYPE , RG_FONT_DEFAULT )))
115115 rg_gui_set_font (0 );
116116 rg_gui_set_theme (rg_settings_get_string (NS_GLOBAL , SETTING_THEME , NULL ));
You can’t perform that action at this time.
0 commit comments