Fixed blit thread hang with DirectDraw when blitting a zero line frame.

This commit is contained in:
SarahW 2017-06-01 18:28:17 +01:00
commit 3724b442fc

View file

@ -123,7 +123,10 @@ static void ddraw_blit_memtoscreen(int x, int y, int y1, int y2, int w, int h)
// pclog("Blit memtoscreen %i,%i %i %i %i,%i\n", x, y, y1, y2, w, h);
if (h <= 0)
{
video_blit_complete();
return;
}
memset(&ddsd, 0, sizeof(ddsd));
ddsd.dwSize = sizeof(ddsd);