changeset 4219:8a848179e244

fixed the eqalizer window
author Cristi Magherusan <majeru@atheme.org>
date Sun, 27 Jan 2008 23:34:26 +0200
parents f1074a07ec09
children e6ef8287d115
files src/audacious/ui_equalizer.c
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/ui_equalizer.c	Sun Jan 27 23:00:32 2008 +0200
+++ b/src/audacious/ui_equalizer.c	Sun Jan 27 23:34:26 2008 +0200
@@ -122,7 +122,8 @@
         height = 116;
 
     if (cfg.scaled) {
-        dock_window_resize(GTK_WINDOW(equalizerwin), 550, height * 2, 550, height * cfg.scale_factor);
+        dock_window_resize(GTK_WINDOW(equalizerwin), 275 * cfg.scale_factor, 
+            height * cfg.scale_factor, 275 * cfg.scale_factor, height * cfg.scale_factor);
     } else {
         dock_window_resize(GTK_WINDOW(equalizerwin), 275, height, 275, height);
     }
@@ -579,8 +580,8 @@
 {
     gtk_window_move(GTK_WINDOW(equalizerwin), cfg.equalizer_x, cfg.equalizer_y);
     if (cfg.scaled && cfg.eq_scaled_linked)
-        gtk_widget_set_size_request(equalizerwin, 550,
-                                    (cfg.equalizer_shaded ? 28 : 232));
+        gtk_widget_set_size_request(equalizerwin, 275 * cfg.scale_factor,
+                                    ((cfg.equalizer_shaded ? 14 : 116) * cfg.scale_factor));
     else
         gtk_widget_set_size_request(equalizerwin, 275,
                                     (cfg.equalizer_shaded ? 14 : 116));