Adjust canvas size when window is resized.

Signed-off-by: John McCutchan <john@johnmccutchan.com>