Fixed CGA 320x200x4 on EGA and (S)VGA cars.

This commit is contained in:
TomW 2015-08-19 21:13:30 +01:00
commit 7bc0f3c54e
2 changed files with 6 additions and 6 deletions

View file

@ -453,12 +453,12 @@ void ega_poll(void *p)
if (ega->sc & 1 && !(ega->crtc[0x17] & 1))
{
edat[0] = ega->vram[(ega->ma << 1) + 0x8000];
edat[1] = ega->vram[(ega->ma << 1) + 0x8004];
edat[1] = ega->vram[(ega->ma << 1) + 0x8001];
}
else
{
edat[0] = ega->vram[(ega->ma << 1)];
edat[1] = ega->vram[(ega->ma << 1) + 4];
edat[1] = ega->vram[(ega->ma << 1) + 1];
}
ega->ma += 4;
ega->ma &= ega->vrammask;