comparison src/audacious/ui_svis.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
comparison
equal deleted inserted replaced
4217:742f00832961 4218:f1074a07ec09
258 gdk_window_move_resize(svis->event_window, widget->allocation.x, widget->allocation.y, allocation->width, allocation->height); 258 gdk_window_move_resize(svis->event_window, widget->allocation.x, widget->allocation.y, allocation->width, allocation->height);
259 else 259 else
260 gdk_window_move_resize(widget->window, widget->allocation.x, widget->allocation.y, allocation->width, allocation->height); 260 gdk_window_move_resize(widget->window, widget->allocation.x, widget->allocation.y, allocation->width, allocation->height);
261 } 261 }
262 262
263 svis->x = widget->allocation.x/(svis->scaled ? 2 : 1); 263 svis->x = widget->allocation.x/(svis->scaled ? cfg.scale_factor : 1);
264 svis->y = widget->allocation.y/(svis->scaled ? 2 : 1); 264 svis->y = widget->allocation.y/(svis->scaled ? cfg.scale_factor : 1);
265 } 265 }
266 266
267 static gboolean ui_svis_expose(GtkWidget *widget, GdkEventExpose *event) { 267 static gboolean ui_svis_expose(GtkWidget *widget, GdkEventExpose *event) {
268 g_return_val_if_fail (widget != NULL, FALSE); 268 g_return_val_if_fail (widget != NULL, FALSE);
269 g_return_val_if_fail (UI_IS_SVIS (widget), FALSE); 269 g_return_val_if_fail (UI_IS_SVIS (widget), FALSE);