Code

define gradient vector size in terms of bits
authormental <mental@users.sourceforge.net>
Tue, 21 Aug 2007 15:06:43 +0000 (15:06 +0000)
committermental <mental@users.sourceforge.net>
Tue, 21 Aug 2007 15:06:43 +0000 (15:06 +0000)
src/libnr/nr-gradient.h

index 8db5bfd7d0de089934cecb219c1cc7907835b4dc..e39ece2af9431b1b4f885e3a10a198f90184e6a5 100644 (file)
@@ -20,7 +20,8 @@
 #include <libnr/nr-matrix.h>
 #include <libnr/nr-render.h>
 
-#define NR_GRADIENT_VECTOR_LENGTH 1024
+#define NR_GRADIENT_VECTOR_BITS 10
+#define NR_GRADIENT_VECTOR_LENGTH (1<<NR_GRADIENT_VECTOR_BITS)
 
 enum {
        NR_GRADIENT_SPREAD_PAD,