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;
|
return -4;
|
||||||
}
|
}
|
||||||
VGLDisplay->Type = VIDBUF8;
|
VGLDisplay->Type = VIDBUF8;
|
||||||
|
VGLDisplay->PixelBytes = 1;
|
||||||
break;
|
break;
|
||||||
case V_INFO_MM_VGAX:
|
case V_INFO_MM_VGAX:
|
||||||
VGLDisplay->Type = VIDBUF8X;
|
VGLDisplay->Type = VIDBUF8X;
|
||||||
|
VGLDisplay->PixelBytes = 1;
|
||||||
break;
|
break;
|
||||||
case V_INFO_MM_DIRECT:
|
case V_INFO_MM_DIRECT:
|
||||||
VGLDisplay->PixelBytes = VGLModeInfo.vi_pixel_size;
|
VGLDisplay->PixelBytes = VGLModeInfo.vi_pixel_size;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user