<p>I'm confused by the graphics detection routines. I thought it was returning 0 for "no graphics" or something, but it turns out 0 means MCGA.<br />So the GraphicsMode enum goes:<br />0: MCGA<br />1: CGA<br />2: Hercules<br />3: EGA<br />4: Tandy<br />5: VGA<br />6: ???</p>