[PATCH 1/2] ddraw: Return DDERR_WRONGMODE when restoring a lost device's primary surface.
Henri Verbeet
hverbeet at gmail.com
Mon Jul 27 09:09:35 CDT 2020
On Mon, 27 Jul 2020 at 17:21, Gabriel Ivăncescu <gabrielopcode at gmail.com> wrote:
> @@ -3758,6 +3758,9 @@ static HRESULT WINAPI ddraw_surface7_Restore(IDirectDrawSurface7 *iface)
> struct wined3d_display_mode mode;
> HRESULT hr;
>
> + if (surface->ddraw->device_state == DDRAW_DEVICE_STATE_LOST)
> + return DDERR_WRONGMODE;
> +
Does this only apply to primary surfaces, or does it affect other
surfaces as well?
More information about the wine-devel
mailing list