Matteo Bruni (@Mystral) commented about dlls/d3dx9_36/surface.c:
return D3DXERR_INVALIDDATA; }
- image->palette = (is_indexed_fmt) ? (PALETTEENTRY *)(((uint8_t *)src_data) + sizeof(*header)) : NULL; image->pixels = ((BYTE *)src_data) + header_size; image->image_file_format = D3DXIFF_DDS; if (starting_mip_level && (image->mip_levels > 1))
I find all those unnecessary parentheses kinda ugly...