Applied two EGA-related commits from mainline PCem.

This commit is contained in:
OBattler
2017-07-18 21:44:42 +02:00
parent d47364fd3e
commit 1168c6c63c
2 changed files with 6 additions and 0 deletions

View File

@@ -591,6 +591,8 @@ void ega_poll(void *p)
if (ega->sc == (ega->crtc[9] & 31))
{
ega->sc = 0;
if (ega->sc == (ega->crtc[11] & 31))
ega->con = 0;
ega->maback += (ega->rowoffset << 3);
ega->maback &= ega->vrammask;

View File

@@ -643,6 +643,8 @@ void video_wait_for_buffer()
void video_blit_memtoscreen(int x, int y, int y1, int y2, int w, int h)
{
if (h <= 0)
return;
video_wait_for_blit();
blit_data.busy = 1;
blit_data.buffer_in_use = 1;
@@ -658,6 +660,8 @@ void video_blit_memtoscreen(int x, int y, int y1, int y2, int w, int h)
void video_blit_memtoscreen_8(int x, int y, int w, int h)
{
if (h <= 0)
return;
video_wait_for_blit();
blit_data.busy = 1;
blit_data.x = x;