aboutsummaryrefslogtreecommitdiff
path: root/vgasrc/stdvgamodes.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2013-11-29 18:43:35 -0500
committerKevin O'Connor <kevin@koconnor.net>2013-12-04 10:34:17 -0500
commit5b6936e0e8a2dcee62cf789f25c0e18796268c42 (patch)
tree1ae66b18872c4ff5a4a9f90faa40c85c2c94cfdb /vgasrc/stdvgamodes.c
parent4cd522e673426e68a96e8d2a026b99e58a821ca0 (diff)
downloadseabios-5b6936e0e8a2dcee62cf789f25c0e18796268c42.zip
seabios-5b6936e0e8a2dcee62cf789f25c0e18796268c42.tar.gz
seabios-5b6936e0e8a2dcee62cf789f25c0e18796268c42.tar.bz2
vgabios: Load the DAC palette in "packed" modes on Cirrus and BochsVGA.
This is a port of a patch applied to the "lgpl vgabios" tree (that was released in its v0.7a release). Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'vgasrc/stdvgamodes.c')
-rw-r--r--vgasrc/stdvgamodes.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/vgasrc/stdvgamodes.c b/vgasrc/stdvgamodes.c
index dda35db..a97c85f 100644
--- a/vgasrc/stdvgamodes.c
+++ b/vgasrc/stdvgamodes.c
@@ -505,3 +505,10 @@ stdvga_set_mode(struct vgamode_s *vmode_g, int flags)
return 0;
}
+
+// Load the standard palette associated with 8bpp packed pixel vga modes.
+void
+stdvga_set_packed_palette(void)
+{
+ stdvga_dac_write(get_global_seg(), palette3, 0, sizeof(palette3) / 3);
+}