diff src/audacious/ui_skinned_menurow.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 75d99359357b
children e6ef8287d115
line wrap: on
line diff
--- a/src/audacious/ui_skinned_menurow.c	Sun Jan 27 21:24:28 2008 +0200
+++ b/src/audacious/ui_skinned_menurow.c	Sun Jan 27 23:00:32 2008 +0200
@@ -199,8 +199,8 @@
     if (GTK_WIDGET_REALIZED (widget))
         gdk_window_move_resize(widget->window, widget->allocation.x, widget->allocation.y, allocation->width, allocation->height);
 
-    menurow->x = widget->allocation.x/(menurow->scaled ? 2 : 1);
-    menurow->y = widget->allocation.y/(menurow->scaled ? 2 : 1);
+    menurow->x = widget->allocation.x/(menurow->scaled ? cfg.scale_factor : 1);
+    menurow->y = widget->allocation.y/(menurow->scaled ? cfg.scale_factor : 1);
 }
 
 static gboolean ui_skinned_menurow_expose(GtkWidget *widget, GdkEventExpose *event) {
@@ -246,8 +246,8 @@
 static MenuRowItem menurow_find_selected(UiSkinnedMenurow * mr, gint x, gint y) {
     MenuRowItem ret = MENUROW_NONE;
 
-    x = x/(mr->scaled ? 2 : 1);
-    y = y/(mr->scaled ? 2 : 1);
+    x = x/(mr->scaled ? cfg.scale_factor : 1);
+    y = y/(mr->scaled ? cfg.scale_factor : 1);
     if (x > 0 && x < 8) {
         if (y >= 0 && y <= 10)
             ret = MENUROW_OPTIONS;