Mercurial > audlegacy
diff src/audacious/ui_svis.c @ 4220:e6ef8287d115
fixed menurow and some obvious svis issues from svis, but IMHO ui_svis needs a
rewrite because of too much hardcoded stuff
| author | Cristi Magherusan <majeru@atheme.org> |
|---|---|
| date | Mon, 28 Jan 2008 00:10:33 +0200 |
| parents | f1074a07ec09 |
| children | de33c83aa06f |
line wrap: on
line diff
--- a/src/audacious/ui_svis.c Sun Jan 27 23:34:26 2008 +0200 +++ b/src/audacious/ui_svis.c Mon Jan 28 00:10:33 2008 +0200 @@ -242,16 +242,16 @@ static void ui_svis_size_request(GtkWidget *widget, GtkRequisition *requisition) { UiSVis *svis = UI_SVIS(widget); - requisition->width = svis->width*(1+svis->scaled); - requisition->height = svis->height*(1+svis->scaled); + requisition->width = svis->width * (svis->scaled ? cfg.scale_factor : 1); + requisition->height = svis->height*(svis->scaled ? cfg.scale_factor : 1); } static void ui_svis_size_allocate(GtkWidget *widget, GtkAllocation *allocation) { UiSVis *svis = UI_SVIS (widget); widget->allocation = *allocation; - widget->allocation.x *= (1+svis->scaled); - widget->allocation.y *= (1+svis->scaled); + widget->allocation.x *= (svis->scaled ? cfg.scale_factor : 1 ); + widget->allocation.y *= (svis->scaled ? cfg.scale_factor : 1); if (GTK_WIDGET_REALIZED (widget)) { if (svis->event_window != NULL) @@ -352,7 +352,7 @@ } } - else { /* svis scaling is disabled for now + else { /*svis scaling, this needs some work, since a lot of stuff is hardcoded --majeru*/ memset(rgb_data, 0, SVIS_WIDTH * cfg.scale_factor * SVIS_HEIGHT * cfg.scale_factor); if (cfg.vis_type == VIS_ANALYZER && !playback_get_paused() && playback_get_playing()){ @@ -418,7 +418,7 @@ } } -*/ + } GdkPixmap *obj = NULL;
