Re: I think there's a bug in the 256 color palette of DOSBox in graphics mode 0x13
Posted on 2024-05-25, 19:26
15 goes into 255 exactly 17 times VGA DAC RGB register values are not 8-bit, they're 6-bit, and 15 does not divide evenly into 63. IBM, and therefore DOSBox, uses these RGB register values for indexes 16-31 of the 256-color default palette: 00,00,00 05,05,05 08,08,08 0B,0B,0B 0E,0E,0E 11,11,11 14, …