File tree Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 158
158
#ifndef RG_SCREEN_VISIBLE_AREA
159
159
#define RG_SCREEN_VISIBLE_AREA {0, 0, 0, 0}
160
160
#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 20
20
RG_FONT_VERA_11 ,
21
21
RG_FONT_VERA_14 ,
22
22
RG_FONT_MAX ,
23
-
24
- RG_FONT_DEFAULT = RG_FONT_VERA_11 ,
25
23
};
26
24
27
25
static 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)
109
109
gui .margins = (__typeof__ (gui .margins ))RG_SCREEN_SAFE_AREA ;
110
110
gui .draw_buffer = get_draw_buffer (gui .screen_width , 18 , C_BLACK );
111
111
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 );
114
114
if (!rg_gui_set_font (rg_settings_get_number (NS_GLOBAL , SETTING_FONTTYPE , RG_FONT_DEFAULT )))
115
115
rg_gui_set_font (0 );
116
116
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