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:
Yoshihiro Takahashi 2000-10-31 07:58:34 +00:00
parent 0a3cb3425f
commit 168d542ea5
2 changed files with 4 additions and 0 deletions

View File

@ -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++) {

View File

@ -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++) {