Avoid corrupting mem if our framebuf size is wrong.

Let the size specify the framebuffer height, which we are most likely to
have gotten wrong.