Module Name: xsrc
Committed By: tsutsui
Date: Sun Jul 20 08:53:00 UTC 2014
Modified Files:
xsrc/external/mit/xf86-video-wsfb/dist/src: wsfb_driver.c
Log Message:
Fix wrong VRAM size calculation on old drivers without GET_FBINFO ioctl.
The linebytes is a byte number of width so it should be
(linebytes * height), not (width * linebytes).
XXX: I'm not sure where WSDISPLAYIO_GET_FBINFO implementation was discussed
but I wonder if we should use proper ifdef or macro to share this
third party Xorg driver with OpenBSD...
To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 \
xsrc/external/mit/xf86-video-wsfb/dist/src/wsfb_driver.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: xsrc/external/mit/xf86-video-wsfb/dist/src/wsfb_driver.c
diff -u xsrc/external/mit/xf86-video-wsfb/dist/src/wsfb_driver.c:1.21 xsrc/external/mit/xf86-video-wsfb/dist/src/wsfb_driver.c:1.22
--- xsrc/external/mit/xf86-video-wsfb/dist/src/wsfb_driver.c:1.21 Wed Jan 22 07:48:29 2014
+++ xsrc/external/mit/xf86-video-wsfb/dist/src/wsfb_driver.c Sun Jul 20 08:53:00 2014
@@ -498,7 +498,7 @@ WsfbPreInit(ScrnInfoPtr pScrn, int flags
fbi->fbi_subtype.fbi_cmapinfo.cmap_entries = info.cmsize;
}
fbi->fbi_flags = 0;
- fbi->fbi_fbsize = info.width * lb;
+ fbi->fbi_fbsize = lb * info.height;
}
/*