/[fenfire]/fenfire/org/fenfire/view/buoy/NodeType2D.java
ViewVC logotype

Diff of /fenfire/org/fenfire/view/buoy/NodeType2D.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.15 by mudyc, Thu Jul 31 10:08:05 2003 UTC revision 1.16 by tjl, Sat Aug 16 10:29:40 2003 UTC
# Line 60  public class NodeType2D extends Abstract Line 60  public class NodeType2D extends Abstract
60          return null;          return null;
61      }      }
62    
63      public int renderBuoy(VobScene vs, int into, Object linkId,      public int renderBuoy(VobScene vs,
64                                int into,
65                                float w, float h,
66                                Object linkId,
67                            Object a, Object cachedSize) {                            Object a, Object cachedSize) {
68          if (dbg) p("start renderBuoy");          if (dbg) p("start renderBuoy");
69          if(effigy != 0) {          if(effigy != 0) {
# Line 70  public class NodeType2D extends Abstract Line 73  public class NodeType2D extends Abstract
73          }          }
74          View2D.Anchor anchor = (View2D.Anchor)a;          View2D.Anchor anchor = (View2D.Anchor)a;
75    
         float[] tmp = new float[2];  
         vs.coords.getSqSize(into, tmp);  
         float w = tmp[0], h = tmp[1];  
76          if (dbg) p("rect "+anchor+" coords "+w+","+h);          if (dbg) p("rect "+anchor+" coords "+w+","+h);
77    
78          float scale = w / anchor.w;          float scale = w / anchor.w;

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26