Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 03 Sep 2019 14:05:50 -0000
From:      Bruce Evans <bde@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r345637 - head/lib/libvgl
Message-ID:  <201903280951.x2S9pcnD035712@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bde
Date: Thu Mar 28 09:51:37 2019
New Revision: 345637
URL: https://svnweb.freebsd.org/changeset/base/345637

Log:
  Oops, r345496 got the pointer args backwards for bcopy() in VGLClear for
  segmented modes.
  
  Also fix some style bugs in the 2 changed lines.  libvgl uses a very non-KNF
  style with 2-column indentation with no tabs except for regressions.

Modified:
  head/lib/libvgl/simple.c

Modified: head/lib/libvgl/simple.c
==============================================================================
--- head/lib/libvgl/simple.c	Thu Mar 28 09:50:25 2019	(r345636)
+++ head/lib/libvgl/simple.c	Thu Mar 28 09:51:37 2019	(r345637)
@@ -556,8 +556,8 @@ VGLClear(VGLBitmap *object, u_long color)
       VGLSetSegment(offset);
       len = min(total - offset, VGLAdpInfo.va_window_size);
       for (i = 0; i < len; i += object->PixelBytes)
-	bcopy(object->Bitmap + (offset + i) % VGLAdpInfo.va_window_size, b,
-	      object->PixelBytes);
+        bcopy(b, object->Bitmap + (offset + i) % VGLAdpInfo.va_window_size,
+              object->PixelBytes);
       offset += len;
     }
     break;





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201903280951.x2S9pcnD035712>