-#if 0
- if(((evt->width) != (pixbuf->art_pixbuf->width)) ||
- ((evt->height) != (pixbuf->art_pixbuf->height)))
- gdk_pixbuf_scale(pixbuf, evt->width, evt->height);
-#endif
+ if(evt->width != gdk_pixbuf_get_width (pixbuf) || evt->height != gdk_pixbuf_get_height (pixbuf))
+ {
+ GdkWindow *root;
+ GdkPixbuf *new_pixbuf;
+
+ root = gdk_get_default_root_window ();
+ new_pixbuf = gdk_pixbuf_get_from_drawable(NULL, root, NULL,
+ 0, 0, 0, 0, evt->width, evt->height);
+ gtk_object_set_data(GTK_OBJECT(drawing_area), "pixbuf", new_pixbuf);
+ gdk_pixbuf_unref(pixbuf);
+ }
+
+ return FALSE;