ddraw: Use wined3d_get_adapter_display_mode() in CreateSurface().
This commit is contained in:
parent
11b7604934
commit
a78708ca50
@ -2892,10 +2892,10 @@ static HRESULT CreateSurface(struct ddraw *ddraw, DDSURFACEDESC2 *DDSD,
|
|||||||
desc2.u4.ddpfPixelFormat.dwSize=sizeof(DDPIXELFORMAT); /* Just to be sure */
|
desc2.u4.ddpfPixelFormat.dwSize=sizeof(DDPIXELFORMAT); /* Just to be sure */
|
||||||
|
|
||||||
/* Get the video mode from WineD3D - we will need it */
|
/* Get the video mode from WineD3D - we will need it */
|
||||||
hr = wined3d_device_get_display_mode(ddraw->wined3d_device, 0, &mode);
|
if (FAILED(hr = wined3d_get_adapter_display_mode(ddraw->wined3d, WINED3DADAPTER_DEFAULT, &mode)))
|
||||||
if (FAILED(hr))
|
|
||||||
{
|
{
|
||||||
ERR("Failed to read display mode from wined3d\n");
|
ERR("Failed to get display mode, hr %#x.\n", hr);
|
||||||
|
|
||||||
switch (ddraw->orig_bpp)
|
switch (ddraw->orig_bpp)
|
||||||
{
|
{
|
||||||
case 8:
|
case 8:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user