diff 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
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)