Commit b010da74 authored by Ryan Wiedemann's avatar Ryan Wiedemann

progagate type information through to get rid of warning

parent d53eb3a3
Pipeline #1779 passed with stage
......@@ -687,7 +687,7 @@ public class GifDecoder {
} while ((blockSize > 0) && !err());
}
public Animation getAnimation(PlayMode playType) {
private Animation<TextureRegion> getAnimation(PlayMode playType) {
int nrFrames = getFrameCount();
Pixmap frame = getFrame(0);
int width = frame.getWidth();
......@@ -725,12 +725,11 @@ public class GifDecoder {
}
float frameDuration = (float)getDelay(0);
frameDuration /= 1000; // convert milliseconds into seconds
Animation result = new Animation(frameDuration, texReg, playType);
return result;
return new Animation<>(frameDuration, texReg, playType);
}
public static Animation loadGIFAnimation(PlayMode playType, InputStream is) {
public static Animation<TextureRegion> loadGIFAnimation(PlayMode playType, InputStream is) {
GifDecoder gdec = new GifDecoder();
gdec.read(is);
return gdec.getAnimation(playType);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment