[PATCH 5/5] d3dx9: Handle pixel formats larger than 32 bits in surface loading / filtering functions.
Henri Verbeet
hverbeet at gmail.com
Fri Feb 14 10:03:12 CST 2014
On 14 February 2014 15:53, Matteo Bruni <mbruni at codeweavers.com> wrote:
> + if (format->bits[c])
> + {
> + mask = format->bits[c] == 32 ? ~0U : (1 << format->bits[c]) - 1;
You could probably also do that as "mask = ~0u >> (32 -
format->bits[c]);", since you already need to check "format->bits[c]"
for 0 anyway.
More information about the wine-devel
mailing list