mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
wined3d: Fix regression in surface conversion.
This commit is contained in:
parent
d510bdc71b
commit
fc179532f4
1 changed files with 1 additions and 1 deletions
|
@ -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) ||
|
||||
|
|
Loading…
Reference in a new issue