85 |
w = (int)(d.width / resmult); |
w = (int)(d.width / resmult); |
86 |
h = (int)(d.height / resmult); |
h = (int)(d.height / resmult); |
87 |
MipzipLoader l; |
MipzipLoader l; |
88 |
|
File f = new File(file + |
89 |
|
(GL.workaroundStupidBuggyAtiDrivers? |
90 |
|
".mipzipBLAH" : |
91 |
|
".mipzip")); |
92 |
try { |
try { |
93 |
l = new MipzipLoader(new File(file+".mipzip")); |
l = new MipzipLoader(f); |
94 |
} catch(IOException e) { |
} catch(IOException e) { |
95 |
|
e.printStackTrace(); |
96 |
throw new Error("MipzipLoader threw '" + e + "' for " + |
throw new Error("MipzipLoader threw '" + e + "' for " + |
97 |
file + ".mipzip"); |
f); |
98 |
} |
} |
99 |
Dimension largest = l.getLevelSize(0); |
Dimension largest = l.getLevelSize(0); |
100 |
x1 = d.width / (float)largest.width; |
x1 = d.width / (float)largest.width; |