Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Mar 2019 14:21:22 +0000 (UTC)
From:      Bruce Evans <bde@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r345643 - head/lib/libvgl
Message-ID:  <201903281421.x2SELMEH081061@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bde
Date: Thu Mar 28 14:21:22 2019
New Revision: 345643
URL: https://svnweb.freebsd.org/changeset/base/345643

Log:
  Fix VGLLine() in depths > 8.
  
  It started truncating its color arg to 8 bits using plot() in r229415.
  The version in r229415 is also more than 3 times slower in segmented
  modes, by doing more syscalls to move the window.

Modified:
  head/lib/libvgl/simple.c

Modified: head/lib/libvgl/simple.c
==============================================================================
--- head/lib/libvgl/simple.c	Thu Mar 28 13:44:18 2019	(r345642)
+++ head/lib/libvgl/simple.c	Thu Mar 28 14:21:22 2019	(r345643)
@@ -248,7 +248,7 @@ VGLGetXY(VGLBitmap *object, int x, int y)
 #define SL_ABSOLUTE(i,j,k)     ( (i-j)*(k = ( (i-j)<0 ? -1 : 1)))
 
 void
-plot(VGLBitmap * object, int x, int y, int flag, byte color)
+plot(VGLBitmap * object, int x, int y, int flag, u_long color)
 {
   /* non-zero flag indicates the pixels need swapping back. */
   if (flag)



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