diff src/audacious/ui_vis.c @ 4218:f1074a07ec09

mostly works, but the VIS is broken, and the eq window is too large...more bugs need to be found
author Cristi Magherusan <majeru@atheme.org>
date Sun, 27 Jan 2008 23:00:32 +0200
parents 742f00832961
children c399e0fa9791
line wrap: on
line diff
--- a/src/audacious/ui_vis.c	Sun Jan 27 21:24:28 2008 +0200
+++ b/src/audacious/ui_vis.c	Sun Jan 27 23:00:32 2008 +0200
@@ -243,8 +243,8 @@
             gdk_window_move_resize(widget->window, widget->allocation.x, widget->allocation.y, allocation->width, allocation->height);
     }
 
-    vis->x = widget->allocation.x/(vis->scaled ? 2 : 1);
-    vis->y = widget->allocation.y/(vis->scaled ? 2 : 1);
+    vis->x = widget->allocation.x/(vis->scaled ? cfg.scale_factor : 1);
+    vis->y = widget->allocation.y/(vis->scaled ? cfg.scale_factor : 1);
 }
 
 static gboolean ui_vis_expose(GtkWidget *widget, GdkEventExpose *event) {