Sigh, r346279 was also a test version with the reduced size doubled (so

it was actually double the full size in current kernels where the reduction
is null, so overran the mmapped() buffer).
This commit is contained in:
Bruce Evans 2019-04-16 15:52:04 +00:00
parent 6ec0606616
commit c0643d9011
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=346280

View file

@ -275,7 +275,7 @@ VGLInit(int mode)
* get the same efficiency and bugs for all kernels.
*/
if (VGLModeInfo.vi_mode >= M_VESA_BASE)
VGLBufSize = 2*VGLAdpInfo.va_line_width*VGLModeInfo.vi_height*
VGLBufSize = VGLAdpInfo.va_line_width*VGLModeInfo.vi_height*
VGLModeInfo.vi_planes;
VGLBuf = malloc(VGLBufSize);
if (VGLBuf == NULL) {