Revision df800210 vl.c
b/vl.c | ||
---|---|---|
179 | 179 |
static const char *data_dir; |
180 | 180 |
const char *bios_name = NULL; |
181 | 181 |
enum vga_retrace_method vga_retrace_method = VGA_RETRACE_DUMB; |
182 |
int vga_cga_hacks = 0; |
|
183 | 182 |
DisplayType display_type = DT_DEFAULT; |
184 | 183 |
int display_remote = 0; |
185 | 184 |
const char* keyboard_layout = NULL; |
... | ... | |
1749 | 1748 |
else if (strstart(opts, "precise", &nextopt)) |
1750 | 1749 |
vga_retrace_method = VGA_RETRACE_PRECISE; |
1751 | 1750 |
else goto invalid_vga; |
1752 |
} else if (strstart(opts, ",cga_hacks=", &nextopt)) { |
|
1753 |
opts = nextopt; |
|
1754 |
while (*opts) { |
|
1755 |
if (strstart(opts, "all", &nextopt)) { |
|
1756 |
opts = nextopt; |
|
1757 |
vga_cga_hacks |= ~0; |
|
1758 |
} else if (strstart(opts, "palette_blanking", &nextopt)) { |
|
1759 |
opts = nextopt; |
|
1760 |
vga_cga_hacks |= VGA_CGA_HACK_PALETTE_BLANKING; |
|
1761 |
} else if (strstart(opts, "font_height", &nextopt)) { |
|
1762 |
opts = nextopt; |
|
1763 |
vga_cga_hacks |= VGA_CGA_HACK_FONT_HEIGHT; |
|
1764 |
} else { |
|
1765 |
break; |
|
1766 |
} |
|
1767 |
|
|
1768 |
if (*opts == '+') { |
|
1769 |
opts++; |
|
1770 |
} else { |
|
1771 |
break; |
|
1772 |
} |
|
1773 |
} |
|
1774 | 1751 |
} else goto invalid_vga; |
1775 | 1752 |
opts = nextopt; |
1776 | 1753 |
} |
Also available in: Unified diff