fixed DirectX screen capture problem when  ratio != fullscreen