gzz-commits
[Top][All Lists]
Advanced

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

[Gzz-commits] gzz/gzz view/RowColView.java view/TextCellConte...


From: Benja Fallenstein
Subject: [Gzz-commits] gzz/gzz view/RowColView.java view/TextCellConte...
Date: Sat, 23 Nov 2002 07:24:58 -0500

CVSROOT:        /cvsroot/gzz
Module name:    gzz
Changes by:     Benja Fallenstein <address@hidden>      02/11/23 07:24:58

Modified files:
        gzz/view       : RowColView.java TextCellContentView.java 
        gzz/vob/vobs   : TDecor.java 

Log message:
        Correct lines and stubs in RowColView

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gzz/view/RowColView.java.diff?tr1=1.12&tr2=1.13&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gzz/view/TextCellContentView.java.diff?tr1=1.24&tr2=1.25&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gzz/vob/vobs/TDecor.java.diff?tr1=1.1&tr2=1.2&r1=text&r2=text

Patches:
Index: gzz/gzz/view/RowColView.java
diff -u gzz/gzz/view/RowColView.java:1.12 gzz/gzz/view/RowColView.java:1.13
--- gzz/gzz/view/RowColView.java:1.12   Fri Nov  1 20:23:45 2002
+++ gzz/gzz/view/RowColView.java        Sat Nov 23 07:24:58 2002
@@ -104,8 +104,8 @@
                }
 
         Vob conn[] = new Vob[] {
-            new SimpleConnection(1, 0, -1, 0),
-            new SimpleConnection(0, 1, 0, -1),
+            new SimpleConnection(1, 0.5f, 0, 0.5f),
+            new SimpleConnection(0.5f, 1, 0.5f, 0),
         };
 
         for(int i=0; i<n[main]; i++)
Index: gzz/gzz/view/TextCellContentView.java
diff -u gzz/gzz/view/TextCellContentView.java:1.24 
gzz/gzz/view/TextCellContentView.java:1.25
--- gzz/gzz/view/TextCellContentView.java:1.24  Mon Nov 18 05:28:16 2002
+++ gzz/gzz/view/TextCellContentView.java       Sat Nov 23 07:24:58 2002
@@ -39,7 +39,7 @@
  */
 
 public class TextCellContentView extends CellContentView {
-public static final String rcsid = "$Id: TextCellContentView.java,v 1.24 
2002/11/18 10:28:16 humppake Exp $";
+public static final String rcsid = "$Id: TextCellContentView.java,v 1.25 
2002/11/23 12:24:58 benja Exp $";
     public static boolean dbg = false;
     private static void pa(String s) { System.err.println(s); }
 
@@ -116,7 +116,7 @@
 
         if(offs >= 0 && offs >= start && offs <= end) {
            float x = style.getWidth(c.t().substring(start, offs), 1);
-           int cs_cursor = vs.orthoCS(cs, CURS_KEY, -1, x, 0, 0,h);
+           int cs_cursor = vs.orthoCS(cs, CURS_KEY, -1, x+1, 0, 0,h);
             // v.map.put(new TextCursorVob(vob, offs), cs);
            vs.map.put(cursorVob, cs_cursor);
        }
Index: gzz/gzz/vob/vobs/TDecor.java
diff -u gzz/gzz/vob/vobs/TDecor.java:1.1 gzz/gzz/vob/vobs/TDecor.java:1.2
--- gzz/gzz/vob/vobs/TDecor.java:1.1    Fri Nov  1 20:23:46 2002
+++ gzz/gzz/vob/vobs/TDecor.java        Sat Nov 23 07:24:58 2002
@@ -28,7 +28,7 @@
 /** A "T" decoration indicating a connection that isn't shown.
  */
 public class TDecor extends Vob {
-public static final String rcsid = "$Id: TDecor.java,v 1.1 2002/11/02 01:23:46 
benja Exp $";
+public static final String rcsid = "$Id: TDecor.java,v 1.2 2002/11/23 12:24:58 
benja Exp $";
 
     Color color;
 
@@ -63,10 +63,11 @@
        if(fast) return;
        if(color != null) g.setColor(color);
         else g.setColor(info1.getMixedFgColor());
-        int x = horizontal ? dir : 0;
-        int y = horizontal ? 0 : dir;
-        info1.xform(x, y, pt);
-        x = pt.x; y = pt.y;
+       int d = (dir>0) ? 1 : 0;
+        info1.xform(horizontal ? d : 0.5f,
+                   horizontal ? 0.5f : d,
+                   pt);
+        int x = pt.x, y = pt.y;
 
         int len = dir * 5;
 




reply via email to

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