[PATCH 3/5] ddraw: Change surface pitch before width.

Stefan Dösinger stefandoesinger at gmail.com
Fri Dec 13 08:52:35 CST 2013


Am 13.12.2013 um 15:06 schrieb Henri Verbeet:
> I think we'd want the callers to always specify everything, but only
> do the more expensive things like e.g. resource_unload() when
> required.
I don't think so. At least a NULL memory pointer should be allowed for device_reset. d3d9 will need to be able to specify a pitch of 0, otherwise we'll have to deal with block-based surfaces with custom pitches and calculate a compressed surface pitch in d3d9.

I guess we can require a width and height != zero, that'll limit the complexity of the error checking.




More information about the wine-devel mailing list