aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/fbio.h
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2010-02-03 22:17:30 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2010-02-03 22:17:30 +0000
commitc5813a500a81e933774bfd65ac5fc73976878948 (patch)
treede10d293f3d3e6a084adc9267bd11af955a4c1be /sys/sys/fbio.h
parenta95cde01329ce01094d3dcbde383fce1adb86ead (diff)
downloadsrc-c5813a500a81e933774bfd65ac5fc73976878948.tar.gz
src-c5813a500a81e933774bfd65ac5fc73976878948.zip
Use bytes per scan line from mode table. The previous implementation did
not reflect actual number of bytes when it was not exactly width * bpp * 8.
Notes
Notes: svn path=/head/; revision=203453
Diffstat (limited to 'sys/sys/fbio.h')
-rw-r--r--sys/sys/fbio.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/sys/fbio.h b/sys/sys/fbio.h
index 415ad966911f..5bc27ff2d1cb 100644
--- a/sys/sys/fbio.h
+++ b/sys/sys/fbio.h
@@ -295,8 +295,10 @@ struct video_info {
/* for MM_DIRECT only */
int vi_pixel_fields[4]; /* RGB and reserved fields */
int vi_pixel_fsizes[4];
+ /* XXX for VESA only */
+ int vi_line_width;
/* reserved */
- u_char vi_reserved[64];
+ u_char vi_reserved[60];
vm_offset_t vi_registers; /* physical address */
vm_offset_t vi_registers_size;
};