ddraw: Do not let the a surface dimension fall to 0.

This commit is contained in:
Stefan Dösinger 2006-10-12 19:37:21 +02:00 committed by Alexandre Julliard
parent b4afa19272
commit 75c67f6b45
1 changed files with 2 additions and 2 deletions

View File

@ -2331,8 +2331,8 @@ IDirectDrawImpl_CreateSurface(IDirectDraw7 *iface,
if(DDSD->ddsCaps.dwCaps & DDSCAPS_MIPMAP)
{
level++;
desc2.dwWidth /= 2;
desc2.dwHeight /= 2;
if(desc2.dwWidth > 1) desc2.dwWidth /= 2;
if(desc2.dwHeight > 1) desc2.dwHeight /= 2;
}
hr = IDirectDrawImpl_CreateNewSurface(This,