Matteo Bruni : d3dx9: Compute the correct source rect in D3DXLoadSurfaceFromFileInMemory().