Commit d313e4f9 authored by Józef Kucia's avatar Józef Kucia Committed by Alexandre Julliard

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

parent 7b1aa04b
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment