Commit f5341257 authored by Owen Taylor's avatar Owen Taylor Committed by Owen Taylor
Browse files

Revert accidental changes from Federico's last commit.

2000-06-21  Owen Taylor  <>

	* gdk-pixbuf/testpixbuf-scale.c: Revert accidental changes
	from Federico's last commit.
parent ee089516
......@@ -29,40 +29,18 @@ gboolean
expose_cb (GtkWidget *widget, GdkEventExpose *event, gpointer data)
GdkPixbuf *dest;
GdkGC *gc;
GdkColormap *colormap;
GdkColor color; = 0xffff; = 0xffff; = 0xffff;
gc = gdk_gc_new (widget->window);
colormap = gdk_window_get_colormap (widget->window);
gdk_colormap_alloc_color (colormap, &color, TRUE, TRUE);
gdk_gc_set_foreground (gc, &color);
gdk_draw_rectangle (widget->window, gc,
event->area.width, event->area.height);
gdk_window_set_back_pixmap (widget->window, NULL, FALSE);
dest = gdk_pixbuf_new (GDK_COLORSPACE_RGB, FALSE, 8, event->area.width, event->area.height);
dest = gdk_pixbuf_get_from_drawable(NULL,
gdk_window_get_colormap (widget->window),
0, 0, event->area.width, event->area.height);
gdk_pixbuf_composite (pixbuf, dest,
gdk_pixbuf_composite_color (pixbuf, dest,
0, 0, event->area.width, event->area.height,
-event->area.x, -event->area.y,
(double) widget->allocation.width / gdk_pixbuf_get_width (pixbuf),
(double) widget->allocation.height / gdk_pixbuf_get_height (pixbuf),
interp_type, overall_alpha);
interp_type, overall_alpha,
event->area.x, event->area.y, 16, 0xaaaaaa, 0x555555);
gdk_pixbuf_render_to_drawable (dest, widget->window, widget->style->fg_gc[GTK_STATE_NORMAL],
0, 0, event->area.x, event->area.y,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment