wined3d: Fix DEBUG_SINGLE_MODE.
This commit is contained in:
parent
915898fbb7
commit
8192555dff
|
@ -1111,13 +1111,14 @@ static HRESULT WINAPI IWineD3DImpl_EnumAdapterModes(IWineD3D *iface, UINT Adapte
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Adapter == 0) { /* Display */
|
if (Adapter == 0) { /* Display */
|
||||||
|
int bpp;
|
||||||
#if !defined( DEBUG_SINGLE_MODE )
|
#if !defined( DEBUG_SINGLE_MODE )
|
||||||
DEVMODEW DevModeW;
|
DEVMODEW DevModeW;
|
||||||
int ModeIdx = 0;
|
int ModeIdx = 0;
|
||||||
|
|
||||||
/* Work out the current screen bpp */
|
/* Work out the current screen bpp */
|
||||||
HDC hdc = CreateDCA("DISPLAY", NULL, NULL, NULL);
|
HDC hdc = CreateDCA("DISPLAY", NULL, NULL, NULL);
|
||||||
int bpp = GetDeviceCaps(hdc, BITSPIXEL);
|
bpp = GetDeviceCaps(hdc, BITSPIXEL);
|
||||||
DeleteDC(hdc);
|
DeleteDC(hdc);
|
||||||
|
|
||||||
/* If we are filtering to a specific format, then need to skip all unrelated
|
/* If we are filtering to a specific format, then need to skip all unrelated
|
||||||
|
|
Loading…
Reference in New Issue