Merge pull request #1284 from 86Box/tc1995
Improved code style and fixed the ht216-32 video memory size.
This commit is contained in:
@@ -1016,11 +1016,10 @@ ht216_write(uint32_t addr, uint8_t val, void *p)
|
|||||||
addr &= svga->banked_mask;
|
addr &= svga->banked_mask;
|
||||||
addr = (addr & 0x7fff) + ht216->write_banks[(addr >> 15) & 1];
|
addr = (addr & 0x7fff) + ht216->write_banks[(addr >> 15) & 1];
|
||||||
|
|
||||||
if (!ht216->ht_regs[0xcd] && !ht216->ht_regs[0xfe] && !ht216->ht_regs[0xf3]) {
|
if (!ht216->ht_regs[0xcd] && !ht216->ht_regs[0xfe] && !ht216->ht_regs[0xf3])
|
||||||
svga_write_linear(addr, val, svga);
|
svga_write_linear(addr, val, svga);
|
||||||
} else {
|
else
|
||||||
ht216_write_common(ht216, addr, val);
|
ht216_write_common(ht216, addr, val);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -1303,7 +1302,7 @@ v7_vga_1024i_init(const device_t *info)
|
|||||||
static void *
|
static void *
|
||||||
ht216_pb410a_init(const device_t *info)
|
ht216_pb410a_init(const device_t *info)
|
||||||
{
|
{
|
||||||
ht216_t *ht216 = ht216_init(info, device_get_config_int("memory") << 10, 0);
|
ht216_t *ht216 = ht216_init(info, 1 << 20, 0);
|
||||||
|
|
||||||
return ht216;
|
return ht216;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user