Expanded the video routines.

It's possible to resize the window now.