Mercurial > audlegacy
comparison src/audacious/main.c @ 4224:9b8d6438e00f
load/save the scale value
author | Cristi Magherusan <majeru@atheme.org> |
---|---|
date | Mon, 28 Jan 2008 03:04:00 +0200 |
parents | 2c9c2b5caaee |
children | 704607c1f858 |
comparison
equal
deleted
inserted
replaced
4223:2c9c2b5caaee | 4224:9b8d6438e00f |
---|---|
612 | 612 |
613 g_snprintf(eqtext, sizeof(eqtext), "equalizer_band%d", i); | 613 g_snprintf(eqtext, sizeof(eqtext), "equalizer_band%d", i); |
614 cfg_db_get_float(db, NULL, eqtext, &cfg.equalizer_bands[i]); | 614 cfg_db_get_float(db, NULL, eqtext, &cfg.equalizer_bands[i]); |
615 } | 615 } |
616 | 616 |
617 /* custom scale factor */ | |
618 cfg_db_get_float(db, NULL, "scale_factor", &cfg.scale_factor); | |
619 | |
617 /* History */ | 620 /* History */ |
618 if (cfg_db_get_int(db, NULL, "url_history_length", &length)) { | 621 if (cfg_db_get_int(db, NULL, "url_history_length", &length)) { |
619 for (i = 1; i <= length; i++) { | 622 for (i = 1; i <= length; i++) { |
620 gchar str[19], *tmp; | 623 gchar str[19], *tmp; |
621 | 624 |
882 str = g_strdup_printf("equalizer_band%d", i); | 885 str = g_strdup_printf("equalizer_band%d", i); |
883 cfg_db_set_float(db, NULL, str, cfg.equalizer_bands[i]); | 886 cfg_db_set_float(db, NULL, str, cfg.equalizer_bands[i]); |
884 g_free(str); | 887 g_free(str); |
885 } | 888 } |
886 | 889 |
890 cfg_db_set_float(db, NULL, "scale_factor", cfg.scale_factor); | |
891 | |
887 if (bmp_active_skin != NULL) | 892 if (bmp_active_skin != NULL) |
888 { | 893 { |
889 if (bmp_active_skin->path) | 894 if (bmp_active_skin->path) |
890 cfg_db_set_string(db, NULL, "skin", bmp_active_skin->path); | 895 cfg_db_set_string(db, NULL, "skin", bmp_active_skin->path); |
891 else | 896 else |