Skip to content

Commit d6e5efe

Browse files
committed
More EGA fixes.
1 parent fd603d3 commit d6e5efe

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎src/video/vid_ega.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1672,7 +1672,7 @@ ega_standalone_init(const device_t *info)
16721672
ega->alt_addr = 1;
16731673
}
16741674
#endif
1675-
io_sethandler(addr - 0x20, 0x0040, ega_in, NULL, NULL, ega_out, NULL, NULL, ega);
1675+
io_sethandler(addr, 0x0040, ega_in, NULL, NULL, ega_out, NULL, NULL, ega);
16761676

16771677
if (ega->chipset) {
16781678
io_sethandler(0x01ce, 0x0002, ega_in, NULL, NULL, ega_out, NULL, NULL, ega);
@@ -1797,12 +1797,12 @@ static const device_config_t ega_ibm_config[] = {
17971797
.description = "Address",
17981798
.type = CONFIG_HEX16,
17991799
.default_string = NULL,
1800-
.default_int = 0x03c0,
1800+
.default_int = 0x03a0,
18011801
.file_filter = NULL,
18021802
.spinner = { 0 },
18031803
.selection = {
1804-
{ .description = "0x3C0", .value = 0x03c0 },
1805-
{ .description = "0x2C0", .value = 0x02c0 },
1804+
{ .description = "0x3C0", .value = 0x03a0 },
1805+
{ .description = "0x2C0", .value = 0x02a0 },
18061806
{ .description = "" }
18071807
},
18081808
.bios = { { 0 } }

0 commit comments

Comments
 (0)