wined3d: Remove 24/32 bit hacks.
This commit is contained in:
parent
96504632de
commit
51adbf5bbf
|
@ -1520,7 +1520,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_CreateAdditionalSwapChain(IWineD3DDevic
|
|||
memset(&devmode, 0, sizeof(devmode));
|
||||
devmode.dmSize = sizeof(devmode);
|
||||
devmode.dmFields = DM_BITSPERPEL | DM_PELSWIDTH | DM_PELSHEIGHT;
|
||||
devmode.dmBitsPerPel = (bpp >= 24) ? 32 : bpp; /* Stupid XVidMode cannot change bpp */
|
||||
devmode.dmBitsPerPel = bpp;
|
||||
devmode.dmPelsWidth = pPresentationParameters->BackBufferWidth;
|
||||
devmode.dmPelsHeight = pPresentationParameters->BackBufferHeight;
|
||||
ChangeDisplaySettingsExW(This->adapter->DeviceName, &devmode, NULL, CDS_FULLSCREEN, NULL);
|
||||
|
@ -1650,7 +1650,7 @@ error:
|
|||
memset(&devmode, 0, sizeof(devmode));
|
||||
devmode.dmSize = sizeof(devmode);
|
||||
devmode.dmFields = DM_BITSPERPEL | DM_PELSWIDTH | DM_PELSHEIGHT;
|
||||
devmode.dmBitsPerPel = (formatDesc->bpp >= 3) ? 32 : formatDesc->bpp * 8; /* Stupid XVidMode cannot change bpp */
|
||||
devmode.dmBitsPerPel = formatDesc->bpp * 8;
|
||||
devmode.dmPelsWidth = object->orig_width;
|
||||
devmode.dmPelsHeight = object->orig_height;
|
||||
ChangeDisplaySettingsExW(This->adapter->DeviceName, &devmode, NULL, CDS_FULLSCREEN, NULL);
|
||||
|
@ -2327,7 +2327,6 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetDisplayMode(IWineD3DDevice *iface, U
|
|||
devmode.dmSize = sizeof(devmode);
|
||||
devmode.dmFields = DM_BITSPERPEL | DM_PELSWIDTH | DM_PELSHEIGHT;
|
||||
devmode.dmBitsPerPel = formatDesc->bpp * 8;
|
||||
if(devmode.dmBitsPerPel == 24) devmode.dmBitsPerPel = 32;
|
||||
devmode.dmPelsWidth = pMode->Width;
|
||||
devmode.dmPelsHeight = pMode->Height;
|
||||
|
||||
|
|
Loading…
Reference in New Issue