/[fenfire]/fenfire/org/fenfire/util/GLSpanner.java
ViewVC logotype

Diff of /fenfire/org/fenfire/util/GLSpanner.java

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

revision 1.3 by benja, Tue Apr 22 11:49:10 2003 UTC revision 1.4 by benja, Tue Apr 22 12:09:05 2003 UTC
# Line 131  public class GLSpanner { Line 131  public class GLSpanner {
131    
132          SpanPage(PageImageScroll sb, int page) {          SpanPage(PageImageScroll sb, int page) {
133    
134              String file = sb.imageFilename(page);              PageImageSpan sp = sb.getPage(page);
135              float resmult = sb.imageFileResolution(page)  /              Dimension d = sp.getSize();
136                              sb.coordinateResolution() ;              w = d.width;
137              // Get the size of the orig. image              h = d.height;
138              Dimension d = ImageSize.readSize(new File(file));  
             if(d == null) {  
                 pa("Image cannot be loaded: "+file);  
                 throw new Error();  
             }  
             w = (int)(d.width / resmult);  
             h = (int)(d.height / resmult);  
139              MipzipLoader l;              MipzipLoader l;
140              File f = new File(file +  
141                // XXX works only with Storm-Alph
142                org.nongnu.storm.BlockId id =
143                    (org.nongnu.storm.BlockId)sb.getBlockId();
144    
145                File f = new File(id.getBitprint() +
146                      (GL.workaroundStupidBuggyAtiDrivers?                      (GL.workaroundStupidBuggyAtiDrivers?
147                          ".mipzipBLAH" :                          ".mipzipBLAH" :
148                          ".mipzip"));                          ".mipzip"));

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

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