diff options
author | nsouch <nsouch@FreeBSD.org> | 2001-01-25 11:01:20 +0000 |
---|---|---|
committer | nsouch <nsouch@FreeBSD.org> | 2001-01-25 11:01:20 +0000 |
commit | 2fda3ddec0c3da0f7f236147acf5c799453a5461 (patch) | |
tree | 98b4358282046aaf52144c919be1b24ba9d3f428 /lib/libvgl | |
parent | fe01c653ba990e326866d151addf65e7acdbf8db (diff) | |
download | FreeBSD-src-2fda3ddec0c3da0f7f236147acf5c799453a5461.zip FreeBSD-src-2fda3ddec0c3da0f7f236147acf5c799453a5461.tar.gz |
Set properly the PixelBytes field for 8bits modes.
Submitted by: Maxim Sobolev <sobomax@FreeBSD.org>
Diffstat (limited to 'lib/libvgl')
-rw-r--r-- | lib/libvgl/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libvgl/main.c b/lib/libvgl/main.c index 635c29c..c5b324c 100644 --- a/lib/libvgl/main.c +++ b/lib/libvgl/main.c @@ -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; |