[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gzz-commits] gzz/gfx/libutil Irregu.hxx
From: |
Janne V. Kujala |
Subject: |
[Gzz-commits] gzz/gfx/libutil Irregu.hxx |
Date: |
Wed, 13 Nov 2002 10:00:31 -0500 |
CVSROOT: /cvsroot/gzz
Module name: gzz
Changes by: Janne V. Kujala <address@hidden> 02/11/13 10:00:31
Modified files:
gfx/libutil : Irregu.hxx
Log message:
Add fourth shift for non-1D slices
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gfx/libutil/Irregu.hxx.diff?tr1=1.9&tr2=1.10&r1=text&r2=text
Patches:
Index: gzz/gfx/libutil/Irregu.hxx
diff -u gzz/gfx/libutil/Irregu.hxx:1.9 gzz/gfx/libutil/Irregu.hxx:1.10
--- gzz/gfx/libutil/Irregu.hxx:1.9 Wed Nov 13 09:10:09 2002
+++ gzz/gfx/libutil/Irregu.hxx Wed Nov 13 10:00:31 2002
@@ -180,7 +180,8 @@
ZVec shift0(0,0,0);
ZVec shift1(0,0,0);
- for (int s = 0; s < (flags & SHIFTS ? 3 : 1); s++) {
+ int numshifts = flags & SHIFTS ? 3 + (texslicing != 0) : 1;
+ for (int s = 0; s < numshifts; s++) {
if (flags & SHIFTS) {
switch (s) {
case 0:
@@ -194,6 +195,10 @@
case 2:
shift0 = -scale1 * dv1t.normalize();
shift1 = -scale1 * dv1t.normalize();
+ break;
+ case 3:
+ shift0 = -scale1 * dv0t.normalize().cw90();
+ shift1 = -scale1 * dv0t.normalize().cw90();
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gzz-commits] gzz/gfx/libutil Irregu.hxx,
Janne V. Kujala <=