/[gzz]/gzz/gzz/vob/TextCursorVob.java
ViewVC logotype

Diff of /gzz/gzz/vob/TextCursorVob.java

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

revision 1.5 by tjl, Mon Sep 23 08:24:26 2002 UTC revision 1.6 by benja, Mon Oct 7 17:27:02 2002 UTC
# Line 62  String rcsid = "$Id$"; Line 62  String rcsid = "$Id$";
62          String text = textvob.text;          String text = textvob.text;
63          TextStyle style = textvob.style;          TextStyle style = textvob.style;
64    
65          Shape oldClip = g.getClip();          info1.getExtRect(rect);
66            float bx = rect.x, by = rect.y;
67            info2.getExtRect(rect);
68            float bw = rect.width, bh = rect.height;
69            
70            /*Shape oldClip = g.getClip();
71          info1.getClipRect(rect);          info1.getClipRect(rect);
72          g.clipRect(rect.x, rect.y,          g.clipRect(rect.x, rect.y,
73                        rect.width+2, rect.height);                        rect.width+2, rect.height);
74    
75          info1.getExtRect(rect);          info1.getExtRect(rect);*/
76    
77          float scale = textvob.scale;          float scale = textvob.scale;
78          if(scale < 0)          if(scale < 0)
79              scale = style.getScaleByHeight(rect.height-3);              scale = style.getScaleByHeight(bh-3);
80    
81          float h = style.getHeight(scale);          float h = style.getHeight(scale);
82          float text_w = style.getWidth(text.substring(0, offs), scale);          float text_w = style.getWidth(text.substring(0, offs), scale);
83    
84          int x = (int)(rect.x + text_w);          int x = (int)(bx + text_w);
85          int y = (int)(rect.y + rect.height/2 - h/2);          int y = (int)(by + bh/2 - h/2);
86    
87          g.drawLine(x, y, x, y + (int)h);          g.drawLine(x, y, x, y + (int)h);
88    
89          g.setClip(oldClip);          //g.setClip(oldClip);
90      }      }
91  }  }
92    

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

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