Józef Kucia : d3dx9: Introduce a function for calculating the expected size of a DDS file.