Display initial graphical/text mode info

Previously, this.graphical_mode and the "screen-set-mode" message was
set/sent when the miscellaneous output register was modified. Now that
the method of determining the video mode has changed, screen-set-mode
didn't get sent for the default mode.
This commit is contained in:
Ernest Wong 2018-01-23 13:56:54 +13:00 committed by Fabian
parent b222aac117
commit 282207ff53

View file

@ -178,6 +178,7 @@ function VGAScreen(cpu, bus, vga_memory_size)
/** @type {boolean} */
this.graphical_mode = false;
setTimeout(() => { bus.send("screen-set-mode", this.graphical_mode); }, 0);
/*
* VGA palette containing 256 colors for video mode 13, svga 8bpp, etc.