From 75c67f6b459fa5f26844d50436413967f59dbd60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20D=C3=B6singer?= Date: Thu, 12 Oct 2006 19:37:21 +0200 Subject: [PATCH] ddraw: Do not let the a surface dimension fall to 0. --- dlls/ddraw/ddraw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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,