mirror of
https://github.com/Eaglercraft-Archive/Eaglercraftx-1.8.8-src.git
synced 2025-06-27 18:38:14 -05:00
Update #6 - Added FXAA Antialiasing
This commit is contained in:
@ -45,8 +45,10 @@ public class PlatformAssets {
|
||||
File loadFile = new File("resources", path);
|
||||
byte[] ret = new byte[(int) loadFile.length()];
|
||||
try(FileInputStream is = new FileInputStream(loadFile)) {
|
||||
is.read(ret);
|
||||
is.close();
|
||||
int i, j = 0;
|
||||
while(j < ret.length && (i = is.read(ret, j, ret.length - j)) != -1) {
|
||||
j += i;
|
||||
}
|
||||
return ret;
|
||||
}catch(IOException ex) {
|
||||
return null;
|
||||
|
Reference in New Issue
Block a user