changeset 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 f6625617716b
files src/audacious/main.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/main.c	Mon Jan 28 02:47:30 2008 +0200
+++ b/src/audacious/main.c	Mon Jan 28 03:04:00 2008 +0200
@@ -614,6 +614,9 @@
         cfg_db_get_float(db, NULL, eqtext, &cfg.equalizer_bands[i]);
     }
 
+    /* custom scale factor */
+    cfg_db_get_float(db, NULL, "scale_factor", &cfg.scale_factor);
+
     /* History */
     if (cfg_db_get_int(db, NULL, "url_history_length", &length)) {
         for (i = 1; i <= length; i++) {
@@ -884,6 +887,8 @@
         g_free(str);
     }
 
+    cfg_db_set_float(db, NULL, "scale_factor", cfg.scale_factor);
+
     if (bmp_active_skin != NULL)
     {
         if (bmp_active_skin->path)