d3d: Correct framebuffer sizing issues.