Module: wine Branch: master Commit: fc179532f4da15a38b347542ed2840c1612711c2 URL: http://source.winehq.org/git/wine.git/?a=commit;h=fc179532f4da15a38b347542ed...
Author: Markus Amsler markus.amsler@oribi.org Date: Wed Nov 8 02:22:29 2006 +0100
wined3d: Fix regression in surface conversion.
---
dlls/wined3d/surface.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c index 1741585..84a838f 100644 --- a/dlls/wined3d/surface.c +++ b/dlls/wined3d/surface.c @@ -1672,7 +1672,7 @@ HRESULT d3dfmt_convert_surface(BYTE *src 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) ||