+
+ /* View */
+ app_config_key_file_get_int(kf, "view", "layout", &cfg->layout);
+ if ((cfg->layout != UI_LAYOUT1) && (cfg->layout != UI_LAYOUT2)) {
+ log_fail_no_exit("Invalid layout, defaulting to layout 1");
+ cfg->layout = UI_LAYOUT1;
+ }
+ app_config_key_file_get_int(kf, "view", "int_memory",
+ &cfg->view_int_memory);
+ app_config_key_file_get_int(kf, "view", "ext_memory",
+ &cfg->view_ext_memory);
+ app_config_key_file_get_int(kf, "view", "bits_per_row",
+ &cfg->bits_per_row);