Fixed compat with new Animation class API

This commit is contained in:
Collin Smith 2019-01-28 14:55:08 -08:00
parent f7e6ef281c
commit cb11853a26

View File

@ -1095,7 +1095,8 @@ public class MPQViewer {
String palette = paletteList.getSelected();
Diablo.batch.setPalette(palettes.get(palette));
Animation anim = Animation.newAnimation(dc, (int) slDirection.getValue());
Animation anim = Animation.newAnimation(dc);
anim.setDirection((int) slDirection.getValue());
anim.setFrameDuration(1 / slFrameDuration.getValue());
setDelegate(anim);
}