From 5ee94e995406fc1a7092869c54f717684db90f7a Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Thu, 28 Mar 2019 14:21:22 +0000 Subject: [PATCH] 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. --- lib/libvgl/simple.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libvgl/simple.c b/lib/libvgl/simple.c index d4bb69cb848a..cea06c85c3a5 100644 --- a/lib/libvgl/simple.c +++ b/lib/libvgl/simple.c @@ -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)