d3dx9: Fix the expected_length computation for non-square DDS files.

This commit is contained in:
Józef Kucia 2012-05-22 22:35:56 +02:00 committed by Alexandre Julliard
parent 7b1aa04b00
commit d313e4f9d3
1 changed files with 1 additions and 1 deletions

View File

@ -366,7 +366,7 @@ static HRESULT get_image_info_from_dds(const void *buffer, UINT length, D3DXIMAG
calculate_dds_surface_size(info, width, height, &pitch, &size);
expected_length += size;
width = max(1, width / 2);
height = max(1, width / 2);
height = max(1, height / 2);
}
expected_length *= faces;