Reply 840 of 2419, by TheGreatCodeholio
- Rank
- Oldbie
wrote:Is it worthwhile to condense this part? […]
Is it worthwhile to condense this part?
case M_TEXT:
vga.draw.address_add=vga.config.scan_len*(2<<vga.config.addr_shift);
break;
case M_CGA2:
vga.draw.address_add=vga.config.scan_len*(2<<vga.config.addr_shift);
break;
case M_CGA4:
case M_CGA16:
case M_AMSTRAD: // Next line.
vga.draw.address_add=vga.config.scan_len*(2<<vga.config.addr_shift);
break;
to:
case M_TEXT:
case M_CGA2:
case M_CGA4:
case M_CGA16:
case M_AMSTRAD: // Next line.
vga.draw.address_add=vga.config.scan_len*(2<<vga.config.addr_shift);
break;
Makes sense. Go ahead. I'll modify the code the same on my end and commit the change.
Sorry for the long delay guys, my week has been busy coding support for talking to a video routing/switcher unit over TCP/IP for a client.