Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 184123 | Differences between
and this patch

Collapse All | Expand All

(-)oss-v4.0-build1007-src-gpl.orig/cmd/ossxmix/gtkvu.c (-4 / +4 lines)
Lines 121-128 Link Here
121
{
121
{
122
  GtkVU *vu;
122
  GtkVU *vu;
123
  GdkWindowAttr attributes;
123
  GdkWindowAttr attributes;
124
  gint attributes_mask;
124
  gint i, attributes_mask;
125
  gboolean alloc_success;
126
125
127
  g_return_if_fail (widget != NULL);
126
  g_return_if_fail (widget != NULL);
128
  g_return_if_fail (GTK_IS_VU (widget));
127
  g_return_if_fail (GTK_IS_VU (widget));
Lines 190-197 Link Here
190
  vu->colors[6].green = 0x0000;
189
  vu->colors[6].green = 0x0000;
191
  vu->colors[6].blue = 0x0000;
190
  vu->colors[6].blue = 0x0000;
192
191
193
  gdk_colormap_alloc_colors (gtk_widget_get_colormap (widget), vu->colors, 7,
192
  for (i = 0; i < 7; i++) {
194
			     FALSE, TRUE, &alloc_success);
193
      gdk_colormap_alloc_color (gtk_widget_get_colormap (widget), &vu->colors[i], FALSE, TRUE);
194
    }
195
195
196
  vu->gc = gdk_gc_new (widget->window);
196
  vu->gc = gdk_gc_new (widget->window);
197
  vu->pixmap =
197
  vu->pixmap =

Return to bug 184123