comparison 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
comparison
equal deleted inserted replaced
4217:742f00832961 4218:f1074a07ec09
241 gdk_window_move_resize(vis->event_window, widget->allocation.x, widget->allocation.y, allocation->width, allocation->height); 241 gdk_window_move_resize(vis->event_window, widget->allocation.x, widget->allocation.y, allocation->width, allocation->height);
242 else 242 else
243 gdk_window_move_resize(widget->window, widget->allocation.x, widget->allocation.y, allocation->width, allocation->height); 243 gdk_window_move_resize(widget->window, widget->allocation.x, widget->allocation.y, allocation->width, allocation->height);
244 } 244 }
245 245
246 vis->x = widget->allocation.x/(vis->scaled ? 2 : 1); 246 vis->x = widget->allocation.x/(vis->scaled ? cfg.scale_factor : 1);
247 vis->y = widget->allocation.y/(vis->scaled ? 2 : 1); 247 vis->y = widget->allocation.y/(vis->scaled ? cfg.scale_factor : 1);
248 } 248 }
249 249
250 static gboolean ui_vis_expose(GtkWidget *widget, GdkEventExpose *event) { 250 static gboolean ui_vis_expose(GtkWidget *widget, GdkEventExpose *event) {
251 g_return_val_if_fail (widget != NULL, FALSE); 251 g_return_val_if_fail (widget != NULL, FALSE);
252 g_return_val_if_fail (UI_IS_VIS (widget), FALSE); 252 g_return_val_if_fail (UI_IS_VIS (widget), FALSE);