mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-20 15:43:16 +00:00
Set properly the PixelBytes field for 8bits modes.
Submitted by: Maxim Sobolev <sobomax@FreeBSD.org>
This commit is contained in:
parent
c264e80fb7
commit
e28bc5f477
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=71623
@ -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…
Reference in New Issue
Block a user