Module: wine Branch: master Commit: 8192555dff0a09f5e78b0e2ec2a428bbb3f99e22 URL: http://source.winehq.org/git/wine.git/?a=commit;h=8192555dff0a09f5e78b0e2ec2...
Author: Markus Amsler markus.amsler@oribi.org Date: Mon Oct 9 20:53:17 2006 +0200
wined3d: Fix DEBUG_SINGLE_MODE.
---
dlls/wined3d/directx.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c index bbedfe3..b75ab29 100644 --- a/dlls/wined3d/directx.c +++ b/dlls/wined3d/directx.c @@ -1111,13 +1111,14 @@ static HRESULT WINAPI IWineD3DImpl_EnumA }
if (Adapter == 0) { /* Display */ + int bpp; #if !defined( DEBUG_SINGLE_MODE ) DEVMODEW DevModeW; int ModeIdx = 0;
/* Work out the current screen bpp */ HDC hdc = CreateDCA("DISPLAY", NULL, NULL, NULL); - int bpp = GetDeviceCaps(hdc, BITSPIXEL); + bpp = GetDeviceCaps(hdc, BITSPIXEL); DeleteDC(hdc);
/* If we are filtering to a specific format, then need to skip all unrelated