Removed "Error. y2>=window->height: ..." error. Just print to stderr instead. Probably not a very serious error