From cbe749f16a78d417d5f63b4c599d388c03ffe628 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Sun, 25 Jun 2000 12:50:54 +0000 Subject: [PATCH] Fixed two asserts in Blt(). --- dlls/ddraw/dsurface/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/ddraw/dsurface/main.c b/dlls/ddraw/dsurface/main.c index 654bfd2db9f..e1cd11aefa9 100644 --- a/dlls/ddraw/dsurface/main.c +++ b/dlls/ddraw/dsurface/main.c @@ -226,8 +226,8 @@ HRESULT WINAPI IDirectDrawSurface4Impl_Blt( memset(&xsrc,0,sizeof(xsrc)); } } - if (src) assert(xsrc.bottom <= sdesc.dwHeight); - assert(xdst.bottom <= ddesc.dwHeight); + if (src) assert((xsrc.bottom-xsrc.top) <= sdesc.dwHeight); + assert((xdst.bottom-xdst.top) <= ddesc.dwHeight); bpp = GET_BPP(ddesc); srcheight = xsrc.bottom - xsrc.top;