Stefan Dösinger : ddraw: Do not let the a surface dimension fall to 0.
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Oct 13 05:25:40 CDT 2006
Module: wine
Branch: master
Commit: 75c67f6b459fa5f26844d50436413967f59dbd60
URL: http://source.winehq.org/git/wine.git/?a=commit;h=75c67f6b459fa5f26844d50436413967f59dbd60
Author: Stefan Dösinger <stefandoesinger at gmx.at>
Date: Thu Oct 12 19:37:21 2006 +0200
ddraw: Do not let the a surface dimension fall to 0.
---
dlls/ddraw/ddraw.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/ddraw/ddraw.c b/dlls/ddraw/ddraw.c
index aa21eb0..fc80517 100644
--- a/dlls/ddraw/ddraw.c
+++ b/dlls/ddraw/ddraw.c
@@ -2331,8 +2331,8 @@ IDirectDrawImpl_CreateSurface(IDirectDra
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,
More information about the wine-cvs
mailing list