X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=src%2Fgtk%2Fapp-config.c;h=a073e44e146c90184059877e4c9cd85d56520ab3;hb=5e7b849e7d9263ea7e4b06ea95e989fbff251b97;hp=90022f24c4c338a930a18a56bb41cedcedb5855b;hpb=1eb382f72510d50b3636fb88c4bfaf17183672b6;p=emu8051.git diff --git a/src/gtk/app-config.c b/src/gtk/app-config.c index 90022f2..a073e44 100644 --- a/src/gtk/app-config.c +++ b/src/gtk/app-config.c @@ -60,9 +60,8 @@ app_config_init(void) /* View menu options */ cfg->layout = UI_LAYOUT1; cfg->view_int_memory = 1; - cfg->view_sfr_memory = 1; cfg->view_ext_memory = 1; - cfg->bits_per_row = 16; /* 8 or 16 */ + cfg->bytes_per_row = 16; /* 8 or 16 */ } static int @@ -104,12 +103,10 @@ app_config_load_from_key_file(GKeyFile *kf) } app_config_key_file_get_int(kf, "view", "int_memory", &cfg->view_int_memory); - app_config_key_file_get_int(kf, "view", "sfr_memory", - &cfg->view_sfr_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); + app_config_key_file_get_int(kf, "view", "bytes_per_row", + &cfg->bytes_per_row); } static char * @@ -197,12 +194,10 @@ app_config_save(void) g_string_append_printf(buf, "layout=%d\n", cfg->layout); g_string_append_printf(buf, "int_memory=%d\n", cfg->view_int_memory); - g_string_append_printf(buf, "sfr_memory=%d\n", - cfg->view_sfr_memory); g_string_append_printf(buf, "ext_memory=%d\n", cfg->view_ext_memory); - g_string_append_printf(buf, "bits_per_row=%d\n", - cfg->bits_per_row); + g_string_append_printf(buf, "bytes_per_row=%d\n", + cfg->bytes_per_row); file_path = app_config_get_file_path();