Commit 75c67f6b authored by Stefan Dösinger's avatar Stefan Dösinger Committed by Alexandre Julliard

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

parent b4afa192
...@@ -2331,8 +2331,8 @@ IDirectDrawImpl_CreateSurface(IDirectDraw7 *iface, ...@@ -2331,8 +2331,8 @@ IDirectDrawImpl_CreateSurface(IDirectDraw7 *iface,
if(DDSD->ddsCaps.dwCaps & DDSCAPS_MIPMAP) if(DDSD->ddsCaps.dwCaps & DDSCAPS_MIPMAP)
{ {
level++; level++;
desc2.dwWidth /= 2; if(desc2.dwWidth > 1) desc2.dwWidth /= 2;
desc2.dwHeight /= 2; if(desc2.dwHeight > 1) desc2.dwHeight /= 2;
} }
hr = IDirectDrawImpl_CreateNewSurface(This, hr = IDirectDrawImpl_CreateNewSurface(This,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment