diff --git a/dlls/ddraw/ddraw.c b/dlls/ddraw/ddraw.c index aa21eb0eba7..fc805177a47 100644 --- a/dlls/ddraw/ddraw.c +++ b/dlls/ddraw/ddraw.c @@ -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,