Set properly the PixelBytes field for 8bits modes.

Submitted by:	Maxim Sobolev <sobomax@FreeBSD.org>
This commit is contained in:
Nicolas Souchu 2001-01-25 11:01:20 +00:00
parent c264e80fb7
commit e28bc5f477

View File

@ -176,9 +176,11 @@ VGLInit(int mode)
return -4;
}
VGLDisplay->Type = VIDBUF8;
VGLDisplay->PixelBytes = 1;
break;
case V_INFO_MM_VGAX:
VGLDisplay->Type = VIDBUF8X;
VGLDisplay->PixelBytes = 1;
break;
case V_INFO_MM_DIRECT:
VGLDisplay->PixelBytes = VGLModeInfo.vi_pixel_size;