From 30eab489d57c63f1f315632644958838965e35a3 Mon Sep 17 00:00:00 2001 From: Ulrich Sibiller Date: Sat, 11 May 2024 21:55:21 +0200 Subject: fbedgeimp.h: fix shadowed variable --- nx-X11/programs/Xserver/fb/fbedgeimp.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nx-X11/programs/Xserver/fb/fbedgeimp.h b/nx-X11/programs/Xserver/fb/fbedgeimp.h index 6b363d7ce..59f7eed22 100644 --- a/nx-X11/programs/Xserver/fb/fbedgeimp.h +++ b/nx-X11/programs/Xserver/fb/fbedgeimp.h @@ -69,13 +69,12 @@ rasterizeEdges (FbBits *buf, FbBits *a = line; FbBits startmask, endmask; int nmiddle; - int width = rxi - lxi; int x = lxi; a += x >> FB_SHIFT; x &= FB_MASK; - FbMaskBits (x, width, startmask, nmiddle, endmask); + FbMaskBits (x, rxi - lxi, startmask, nmiddle, endmask); if (startmask) *a++ |= startmask; while (nmiddle--) -- cgit v1.2.3