Set properly the PixelBytes field for 8bits modes.
Submitted by: Maxim Sobolev <sobomax@FreeBSD.org>
This commit is contained in:
parent
c264e80fb7
commit
e28bc5f477
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user