Attempt to fix Riva TNT RAMDAC type setting.
This commit is contained in:
@@ -1012,6 +1012,15 @@ static void rivatnt_out(uint16_t addr, uint8_t val, void *p)
|
|||||||
switch(svga->crtcreg)
|
switch(svga->crtcreg)
|
||||||
{
|
{
|
||||||
case 0x1a:
|
case 0x1a:
|
||||||
|
#if 0
|
||||||
|
if((svga->crtc[0x28] & 3) != 0)
|
||||||
|
{
|
||||||
|
if(svga->crtc[0x1a] & 2) svga_set_ramdac_type(svga, RAMDAC_6BIT);
|
||||||
|
else svga_set_ramdac_type(svga, RAMDAC_8BIT);
|
||||||
|
}
|
||||||
|
else svga_set_ramdac_type(svga, RAMDAC_6BIT);
|
||||||
|
#endif
|
||||||
|
svga_set_ramdac_type(svga, (val & 2) ? RAMDAC_6BIT : RAMDAC_8BIT);
|
||||||
svga_recalctimings(svga);
|
svga_recalctimings(svga);
|
||||||
break;
|
break;
|
||||||
case 0x1e:
|
case 0x1e:
|
||||||
@@ -1279,12 +1288,16 @@ static void rivatnt_recalctimings(svga_t *svga)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
if((svga->crtc[0x28] & 3) != 0)
|
if((svga->crtc[0x28] & 3) != 0)
|
||||||
{
|
{
|
||||||
if(svga->crtc[0x1a] & 2) svga_set_ramdac_type(svga, RAMDAC_6BIT);
|
if(svga->crtc[0x1a] & 2) svga_set_ramdac_type(svga, RAMDAC_6BIT);
|
||||||
else svga_set_ramdac_type(svga, RAMDAC_8BIT);
|
else svga_set_ramdac_type(svga, RAMDAC_8BIT);
|
||||||
}
|
}
|
||||||
else svga_set_ramdac_type(svga, RAMDAC_6BIT);
|
else svga_set_ramdac_type(svga, RAMDAC_6BIT);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
svga_set_ramdac_type(svga, (svga->crtc[0x1a] & 2) ? RAMDAC_6BIT : RAMDAC_8BIT);
|
||||||
|
|
||||||
if (((svga->miscout >> 2) & 2) == 2)
|
if (((svga->miscout >> 2) & 2) == 2)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user