[PATCH 3/3] d3dx9: Use all 32 bits as mask.
Matteo Bruni
matteo.mystral at gmail.com
Thu Jan 10 10:13:57 CST 2013
2013/1/10 Rico Schüller <kgbricola at web.de>:
> ---
> dlls/d3dx9_36/texture.c | 6 +++---
> 1 Datei geändert, 3 Zeilen hinzugefügt(+), 3 Zeilen entfernt(-
>
> - DWORD i, v;
> + DWORD i, v, mask32 = format->bits[c] == 32 ? -1 : ((1 << format->bits[c]) - 1);
Usually we prefer to use ~0U instead of -1 with unsigned variables.
Nice cleanups and fixes for larger pixel formats. Is this for Alan Wake?
More information about the wine-devel
mailing list