summaryrefslogtreecommitdiffstats
path: root/sys/dev/fb/vesa.c
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2010-03-24 15:37:47 +0000
committerjkim <jkim@FreeBSD.org>2010-03-24 15:37:47 +0000
commit0d9a14548aaf115ee268ccc6039bed619931006a (patch)
treeab25901d4be317fc52f8c8ccdac152659d2f5736 /sys/dev/fb/vesa.c
parent9cd70e53235165dea00bcad0df513c8fbaeb9b53 (diff)
downloadFreeBSD-src-0d9a14548aaf115ee268ccc6039bed619931006a.zip
FreeBSD-src-0d9a14548aaf115ee268ccc6039bed619931006a.tar.gz
Teach VGA framebuffer about 8-bit palette format for VESA.
Diffstat (limited to 'sys/dev/fb/vesa.c')
-rw-r--r--sys/dev/fb/vesa.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/dev/fb/vesa.c b/sys/dev/fb/vesa.c
index 733f5b8..0c1d5dd 100644
--- a/sys/dev/fb/vesa.c
+++ b/sys/dev/fb/vesa.c
@@ -1370,8 +1370,6 @@ vesa_save_palette(video_adapter_t *adp, u_char *palette)
bits = (adp->va_flags & V_ADP_DAC8) != 0 ? 8 : 6;
if (vesa_bios_save_palette(0, 256, palette, bits) == 0)
return (0);
- if (bits > 6)
- return (1);
}
return ((*prevvidsw->save_palette)(adp, palette));
@@ -1386,8 +1384,6 @@ vesa_load_palette(video_adapter_t *adp, u_char *palette)
bits = (adp->va_flags & V_ADP_DAC8) != 0 ? 8 : 6;
if (vesa_bios_load_palette(0, 256, palette, bits) == 0)
return (0);
- if (bits > 6)
- return (1);
}
return ((*prevvidsw->load_palette)(adp, palette));
OpenPOWER on IntegriCloud