svn commit: r346280 - head/lib/libvgl

Bruce Evans bde at FreeBSD.org
Tue Sep 3 14:07:48 UTC 2019


Author: bde
Date: Tue Apr 16 15:52:04 2019
New Revision: 346280
URL: https://svnweb.freebsd.org/changeset/base/346280

Log:
  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).

Modified:
  head/lib/libvgl/main.c

Modified: head/lib/libvgl/main.c
==============================================================================
--- head/lib/libvgl/main.c	Tue Apr 16 15:41:45 2019	(r346279)
+++ head/lib/libvgl/main.c	Tue Apr 16 15:52:04 2019	(r346280)
@@ -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) {




More information about the svn-src-all mailing list