Applied two EGA-related commits from mainline PCem.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user