gzz-commits
[Top][All Lists]
Advanced

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

[Gzz-commits] gzz/gzz/view CoordinatePlaneView.java


From: Matti Katila
Subject: [Gzz-commits] gzz/gzz/view CoordinatePlaneView.java
Date: Mon, 27 Jan 2003 00:48:36 -0500

CVSROOT:        /cvsroot/gzz
Module name:    gzz
Changes by:     Matti Katila <address@hidden>   03/01/27 00:48:35

Modified files:
        gzz/view       : CoordinatePlaneView.java 

Log message:
        Fix for failing test <g>..

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gzz/view/CoordinatePlaneView.java.diff?tr1=1.9&tr2=1.10&r1=text&r2=text

Patches:
Index: gzz/gzz/view/CoordinatePlaneView.java
diff -u gzz/gzz/view/CoordinatePlaneView.java:1.9 
gzz/gzz/view/CoordinatePlaneView.java:1.10
--- gzz/gzz/view/CoordinatePlaneView.java:1.9   Wed Jan 22 09:28:12 2003
+++ gzz/gzz/view/CoordinatePlaneView.java       Mon Jan 27 00:48:33 2003
@@ -37,7 +37,7 @@
  */
 
 public class CoordinatePlaneView implements View {
-public static final String rcsid = "$Id: CoordinatePlaneView.java,v 1.9 
2003/01/22 14:28:12 mudyc Exp $";
+public static final String rcsid = "$Id: CoordinatePlaneView.java,v 1.10 
2003/01/27 05:48:33 mudyc Exp $";
     public static boolean dbg = true;
     private static void pa(String s) { System.err.println(s); }
 
@@ -55,8 +55,12 @@
     public int getCursorBox() { return cursorBox; }
 
     public void render(VobScene vs, int into, ViewContext context) {
-       render(vs, into, context, into);
+       render(vs, into, context, -1);
     }
+
+    /** Render with culling.
+     * @param cullCS is the clip cs or under zero if not used.
+     */
     public void render(VobScene vs, int into, ViewContext context, int cullCS) 
{
        Cell cur = context.getAccursed();
        Cell item = cur.h(d_rank);
@@ -74,9 +78,12 @@
                if(dbg) pa("CPV PLACE: "+place[0]+" "+place[1]+" "+
                                bs[0]+" "+bs[1]);
                int box = vs.orthoBoxCS(into, item, 0, place[0], place[1], 1, 
1, bs[0], bs[1]);
-               int cull = ((GLVobCoorder)vs.coords).cull(box, cullCS);
-               vs.matcher.add(box, cull, item+"cull");
-               box = cull;
+
+               if (vs.coords instanceof GLVobCoorder && cullCS > 0) {
+                   int cull = ((GLVobCoorder)vs.coords).cull(box, cullCS);
+                   vs.matcher.add(box, cull, item+"cull");
+                   box = cull;
+               }
 
                cv.place(item, vs, box, context);
                vs.activate(box);




reply via email to

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