wined3d: Fix regression in surface conversion.

This commit is contained in:
Markus Amsler 2006-11-08 02:22:29 +01:00 committed by Alexandre Julliard
parent d510bdc71b
commit fc179532f4

View file

@ -1672,7 +1672,7 @@ HRESULT d3dfmt_convert_surface(BYTE *src, BYTE *dst, UINT pitch, UINT width, UIN
for (y = 0; y < height; y++) {
Source = (WORD *) (src + y * pitch);
Dest = (WORD *) (dst + y * outpitch);
for (x = 0; x < width / 2; x++ ) {
for (x = 0; x < width; x++ ) {
WORD color = *Source++;
*Dest = ((color & 0xFFC0) | ((color & 0x1F) << 1));
if ((color < surf->SrcBltCKey.dwColorSpaceLowValue) ||