Fixed blit thread hang with DirectDraw when blitting a zero line frame.
This commit is contained in:
parent
23b2ae0d9d
commit
3724b442fc
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
// pclog("Blit memtoscreen %i,%i %i %i %i,%i\n", x, y, y1, y2, w, h);
|
||||||
|
|
||||||
if (h <= 0)
|
if (h <= 0)
|
||||||
|
{
|
||||||
|
video_blit_complete();
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
memset(&ddsd, 0, sizeof(ddsd));
|
memset(&ddsd, 0, sizeof(ddsd));
|
||||||
ddsd.dwSize = sizeof(ddsd);
|
ddsd.dwSize = sizeof(ddsd);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue