[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gzz-commits] gzz/gzz/view DimDecorator.java
From: |
Asko Soukka |
Subject: |
[Gzz-commits] gzz/gzz/view DimDecorator.java |
Date: |
Fri, 22 Nov 2002 20:28:16 -0500 |
CVSROOT: /cvsroot/gzz
Module name: gzz
Changes by: Asko Soukka <address@hidden> 02/11/22 20:28:16
Modified files:
gzz/view : DimDecorator.java
Log message:
Ups, View names were still missing.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gzz/view/DimDecorator.java.diff?tr1=1.16&tr2=1.17&r1=text&r2=text
Patches:
Index: gzz/gzz/view/DimDecorator.java
diff -u gzz/gzz/view/DimDecorator.java:1.16 gzz/gzz/view/DimDecorator.java:1.17
--- gzz/gzz/view/DimDecorator.java:1.16 Thu Nov 21 22:55:20 2002
+++ gzz/gzz/view/DimDecorator.java Fri Nov 22 20:28:15 2002
@@ -34,7 +34,7 @@
* vob scene.
*/
public class DimDecorator implements FallbackSceneDecorator {
-String rcsid = "$Id: DimDecorator.java,v 1.16 2002/11/22 03:55:20 humppake Exp
$";
+String rcsid = "$Id: DimDecorator.java,v 1.17 2002/11/23 01:28:15 humppake Exp
$";
public static boolean dbg = true;
private static void p(String s) { if(dbg) pa(s); }
private static void pa(String s) { System.err.println(s); }
@@ -86,11 +86,14 @@
View view = fallback.viewList[win.viewIndex];
if(view instanceof View.NamedView) {
String name = ((View.NamedView)view).getDefaultName();
- Rectangle rect = new Rectangle();
- sc.coords.getRenderInfo(into).getExtRect(rect);
+ /*
+ Rectangle rect = new Rectangle();
+ sc.coords.getRenderInfo(into).getExtRect(rect);
+ */
+ Dimension rect = sc.getSize();
float vw = style.getWidth(name, 1.6f), vh = style.getHeight(1.6f);
float vx = rect.width - vw - 10;
- int cs = sc.orthoCS(into, viewKey, 0, vx, 10, vh, vh);
+ int cs = sc.orthoCS(into, viewKey, 0, vx, 10, vh, vh);
sc.map.put(new TextVob(style, name), cs);
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gzz-commits] gzz/gzz/view DimDecorator.java,
Asko Soukka <=