Commit fc179532 authored by Markus Amsler's avatar Markus Amsler Committed by Alexandre Julliard

wined3d: Fix regression in surface conversion.

parent d510bdc7
...@@ -1672,7 +1672,7 @@ HRESULT d3dfmt_convert_surface(BYTE *src, BYTE *dst, UINT pitch, UINT width, UIN ...@@ -1672,7 +1672,7 @@ HRESULT d3dfmt_convert_surface(BYTE *src, BYTE *dst, UINT pitch, UINT width, UIN
for (y = 0; y < height; y++) { for (y = 0; y < height; y++) {
Source = (WORD *) (src + y * pitch); Source = (WORD *) (src + y * pitch);
Dest = (WORD *) (dst + y * outpitch); Dest = (WORD *) (dst + y * outpitch);
for (x = 0; x < width / 2; x++ ) { for (x = 0; x < width; x++ ) {
WORD color = *Source++; WORD color = *Source++;
*Dest = ((color & 0xFFC0) | ((color & 0x1F) << 1)); *Dest = ((color & 0xFFC0) | ((color & 0x1F) << 1));
if ((color < surf->SrcBltCKey.dwColorSpaceLowValue) || if ((color < surf->SrcBltCKey.dwColorSpaceLowValue) ||
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment