wined3d: Fix DEBUG_SINGLE_MODE.

This commit is contained in:
Markus Amsler 2006-10-09 20:53:17 +02:00 committed by Alexandre Julliard
parent 915898fbb7
commit 8192555dff
1 changed files with 2 additions and 1 deletions

View File

@ -1111,13 +1111,14 @@ static HRESULT WINAPI IWineD3DImpl_EnumAdapterModes(IWineD3D *iface, UINT Adapte
}
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