mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
Disabled EGA/VGA 1bpp/4bpp modes support. This is not real fix, but this comes
back to support 8bpp mode.
This commit is contained in:
parent
0a3cb3425f
commit
168d542ea5
2 changed files with 4 additions and 0 deletions
|
|
@ -609,6 +609,7 @@ bmp_Draw(video_adapter_t *adp)
|
|||
/* set the palette for our image */
|
||||
(*vidsw[adp->va_index]->load_palette)(adp, (u_char *)&bmp_info.palette);
|
||||
|
||||
#if 0
|
||||
#ifndef PC98
|
||||
/* XXX: this is ugly, but necessary for EGA/VGA 1bpp/4bpp modes */
|
||||
if ((adp->va_type == KD_EGA) || (adp->va_type == KD_VGA)) {
|
||||
|
|
@ -627,6 +628,7 @@ bmp_Draw(video_adapter_t *adp)
|
|||
if (bmp_info.sdepth == 1)
|
||||
outw(TSIDX, 0x0102); /* unmask plane #0 */
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
for (line = 0; (line < bmp_info.height) && bmp_info.index; line++) {
|
||||
|
|
|
|||
|
|
@ -609,6 +609,7 @@ bmp_Draw(video_adapter_t *adp)
|
|||
/* set the palette for our image */
|
||||
(*vidsw[adp->va_index]->load_palette)(adp, (u_char *)&bmp_info.palette);
|
||||
|
||||
#if 0
|
||||
#ifndef PC98
|
||||
/* XXX: this is ugly, but necessary for EGA/VGA 1bpp/4bpp modes */
|
||||
if ((adp->va_type == KD_EGA) || (adp->va_type == KD_VGA)) {
|
||||
|
|
@ -627,6 +628,7 @@ bmp_Draw(video_adapter_t *adp)
|
|||
if (bmp_info.sdepth == 1)
|
||||
outw(TSIDX, 0x0102); /* unmask plane #0 */
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
for (line = 0; (line < bmp_info.height) && bmp_info.index; line++) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue