gzz-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gzz-commits] libvob/include/vob DisablablePrimitives.hxx Pri...


From: Asko Soukka
Subject: [Gzz-commits] libvob/include/vob DisablablePrimitives.hxx Pri...
Date: Mon, 17 Mar 2003 05:07:38 -0500

CVSROOT:        /cvsroot/libvob
Module name:    libvob
Changes by:     Asko Soukka <address@hidden>    03/03/17 05:07:36

Modified files:
        include/vob    : DisablablePrimitives.hxx Primitives.hxx 

Log message:
        minor

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/libvob/libvob/include/vob/DisablablePrimitives.hxx.diff?tr1=1.5&tr2=1.6&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/libvob/libvob/include/vob/Primitives.hxx.diff?tr1=1.14&tr2=1.15&r1=text&r2=text

Patches:
Index: libvob/include/vob/DisablablePrimitives.hxx
diff -u libvob/include/vob/DisablablePrimitives.hxx:1.5 
libvob/include/vob/DisablablePrimitives.hxx:1.6
--- libvob/include/vob/DisablablePrimitives.hxx:1.5     Fri Mar 14 10:10:59 2003
+++ libvob/include/vob/DisablablePrimitives.hxx Mon Mar 17 05:07:36 2003
@@ -52,7 +52,7 @@
       DisablableIdentity() : Box(Pt(1,1)) { }
 
       bool shouldBeDrawn() const {
-       if (dbg_cull) printf("\nCull.shouldBeDrawn() called;");
+       if (dbg_cull) printf("\nCull.shouldBeDrawn() called");
        return enabled;
       }
 
@@ -76,7 +76,7 @@
 
        if (dbg_cull) {
          if (enabled) printf("\nCull.enabled: true");
-         else printf("\nCull.enagled: false");
+         else printf("\nCull.enabled: false");
        }
       }
 
Index: libvob/include/vob/Primitives.hxx
diff -u libvob/include/vob/Primitives.hxx:1.14 
libvob/include/vob/Primitives.hxx:1.15
--- libvob/include/vob/Primitives.hxx:1.14      Fri Mar 14 06:46:01 2003
+++ libvob/include/vob/Primitives.hxx   Mon Mar 17 05:07:36 2003
@@ -164,6 +164,13 @@
            return false;
        }
 
+       bool shouldBeDrawn(const DisablablePrimitiveTransform *_) const {
+           return t.shouldBeDrawn();
+       }
+       bool shouldBeDrawn(const void *_) const {
+           return true;
+       }
+
        float selfNonlinearity(NonlinearPrimitiveTransform &t,
                    const ZPt &p, float radius) const {
            return t.nonlinearity(p, radius);
@@ -210,9 +217,7 @@
            return s + su; // XXX !!!
        }
 
-       virtual bool shouldBeDrawn() const {
-           return true;
-       }
+        virtual bool shouldBeDrawn() const { return shouldBeDrawn(&t); }
 
        virtual const Transform &getInverse() const {
            return *original; // XXX




reply via email to

[Prev in Thread] Current Thread [Next in Thread]