=?UTF-8?Q?Stefan=20D=C3=B6singer=20?=: ddraw: Check the alignment, not the size.

Alexandre Julliard julliard at winehq.org
Wed Sep 7 12:35:27 CDT 2011


Module: wine
Branch: master
Commit: d6f17d686debb491d7213f973453659d6ffa76d8
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=d6f17d686debb491d7213f973453659d6ffa76d8

Author: Stefan Dösinger <stefan at codeweavers.com>
Date:   Sun Aug 28 17:18:09 2011 +0200

ddraw: Check the alignment, not the size.

---

 dlls/ddraw/tests/overlay.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/ddraw/tests/overlay.c b/dlls/ddraw/tests/overlay.c
index 5053efb..9660d74 100644
--- a/dlls/ddraw/tests/overlay.c
+++ b/dlls/ddraw/tests/overlay.c
@@ -215,7 +215,7 @@ static void yv12_test(void)
     ok(desc.dwWidth == 256 && desc.dwHeight == 256, "Expected size 256x256, got %ux%u\n",
        desc.dwWidth, desc.dwHeight);
     /* The overlay pitch seems to have 256 byte alignment */
-    ok(U1(desc).lPitch == 256, "Unexpected pitch %u, expected 256\n", U1(desc).lPitch);
+    ok((U1(desc).lPitch & 0xff) == 0, "Expected 256 byte aligned pitch, got %u\n", U1(desc).lPitch);
 
     hr = IDirectDrawSurface7_Unlock(surface, NULL);
     ok(hr == DD_OK, "IDirectDrawSurface7_Unlock returned 0x%08x, expected DD_OK\n", hr);




More information about the wine-cvs mailing list