diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2013-11-29 18:43:35 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2013-12-04 10:34:17 -0500 |
commit | 5b6936e0e8a2dcee62cf789f25c0e18796268c42 (patch) | |
tree | 1ae66b18872c4ff5a4a9f90faa40c85c2c94cfdb /vgasrc/clext.c | |
parent | 4cd522e673426e68a96e8d2a026b99e58a821ca0 (diff) | |
download | seabios-5b6936e0e8a2dcee62cf789f25c0e18796268c42.tar.gz |
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/clext.c')
-rw-r--r-- | vgasrc/clext.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vgasrc/clext.c b/vgasrc/clext.c index 93085cf1..f7751a2f 100644 --- a/vgasrc/clext.c +++ b/vgasrc/clext.c @@ -466,6 +466,8 @@ clext_set_mode(struct vgamode_s *vmode_g, int flags) struct cirrus_mode_s *table_g = container_of( vmode_g, struct cirrus_mode_s, info); cirrus_switch_mode(table_g); + if (GET_GLOBAL(vmode_g->memmodel) == MM_PACKED && !(flags & MF_NOPALETTE)) + stdvga_set_packed_palette(); if (!(flags & MF_LINEARFB)) cirrus_enable_16k_granularity(); if (!(flags & MF_NOCLEARMEM)) |