mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04: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
1 changed files with 2 additions and 0 deletions
|
|
@ -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 a new issue