Update window2d.m