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:
parent
144dab2538
commit
9ab0d2517d
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user