Fixed PCjr 640x200x2 mode.
This commit is contained in:
parent
7515a76c8c
commit
624ef9ba3c
1 changed files with 3 additions and 4 deletions
|
|
@ -240,8 +240,7 @@ void pcjr_poll(void *p)
|
||||||
offset = (pcjr->sc & 3) * 0x2000;
|
offset = (pcjr->sc & 3) * 0x2000;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
switch ((pcjr->array[0] & 0x13) | ((pcjr->array[3] & 0x08) << 5))
|
||||||
switch ((pcjr->array[0] & 0x13) | ((pcjr->array[3] & 0x10) << 4))
|
|
||||||
{
|
{
|
||||||
case 0x13: /*320x200x16*/
|
case 0x13: /*320x200x16*/
|
||||||
for (x = 0; x < pcjr->crtc[1]; x++)
|
for (x = 0; x < pcjr->crtc[1]; x++)
|
||||||
|
|
@ -392,8 +391,8 @@ void pcjr_poll(void *p)
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 0x102: /*640x200x2*/
|
case 0x102: /*640x200x2*/
|
||||||
cols[0] = 0;
|
cols[0] = pcjr->array[0 + 16] + 16;
|
||||||
cols[1] = pcjr->array[0 + 16] + 16;
|
cols[1] = pcjr->array[1 + 16] + 16;
|
||||||
for (x = 0; x < pcjr->crtc[1]; x++)
|
for (x = 0; x < pcjr->crtc[1]; x++)
|
||||||
{
|
{
|
||||||
dat = (pcjr->vram[((pcjr->ma << 1) & mask) + offset] << 8) |
|
dat = (pcjr->vram[((pcjr->ma << 1) & mask) + offset] << 8) |
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue