Add padding code + tests.

WindowAndFlipC01B seems like a natural place to add the padding code for now.