1
0
mirror of https://github.com/narzoul/DDrawCompat synced 2024-12-30 08:55:36 +01:00

Fixed FlipToGDISurface result code when the GDI surface is already active

See #204.
This commit is contained in:
narzoul 2023-11-03 18:13:04 +01:00
parent 144dab2538
commit 9ab0d2517d

View File

@ -170,6 +170,10 @@ namespace DDraw
{
return DDERR_NOTFOUND;
}
if (gdiSurface == g_primarySurface)
{
return DD_OK;
}
return g_primarySurface.get()->lpVtbl->Flip(g_primarySurface, gdiSurface, DDFLIP_WAIT);
}