/[gzz]/gzz/gzz/gfx/gl/GLSpanner.java
ViewVC logotype

Diff of /gzz/gzz/gfx/gl/GLSpanner.java

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

revision 1.6 by tjl, Fri Jan 24 09:09:30 2003 UTC revision 1.7 by tjl, Mon Jan 27 11:35:43 2003 UTC
# Line 39  public class GLSpanner { Line 39  public class GLSpanner {
39          }          }
40      }      }
41    
42      private static class SpanPage {      public static class SpanPage {
43          /** The consumer inside which this page is loaded.          /** The consumer inside which this page is loaded.
44           */           */
45          private MipzipMemoryConsumer consumer;          private MipzipMemoryConsumer consumer;
# Line 51  public class GLSpanner { Line 51  public class GLSpanner {
51    
52          /** The width and height in pagespan units of the real page.          /** The width and height in pagespan units of the real page.
53           */           */
54          int w, h;          public final int w, h;
55    
56          float getX(int spx) {          float getX(float spx) {
57              return spx / (float)w * x1;              return spx / (float)w * x1;
58          }          }
59          float getY(int spy) {          float getY(float spy) {
60              return spy / (float)h * y1;              return spy / (float)h * y1;
61          }          }
62    

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

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