This is a multi-window mode.
p = gdk_pixbuf_get_pixels(pixbuf) + (iwater ) * rowstride; q = gdk_pixbuf_get_pixels(pixbuf) + (iwater + WATERFALL_YSIZE) * rowstride; for(int j=0;j<WATERFALL_XSIZE;j++) { double tmp = waterfall2[j]; *p++ = *q++ = colormap_r(tmp); *p++ = *q++ = colormap_g(tmp); *p++ = *q++ = colormap_b(tmp); }
The parameter, WATERFALL_YSIZE, could be more flexible in this mode. You can directly resize the window using a mouse.