Cache fixes

This commit is contained in:
Jindra Pet��k
2013-08-25 13:31:10 +02:00
parent c276b14c4b
commit 9212d6958b
2 changed files with 38 additions and 3 deletions
@@ -2208,7 +2208,10 @@ public class SWF {
String key = "frame_" + frame + "_" + containerId;
if (cache.contains(key)) {
return ((CachedImage) cache.get(key)).getImage();
CachedImage ciret = ((CachedImage) cache.get(key));
if (ciret != null) {
return ciret.getImage();
}
}
float unzoom = 20;
BufferedImage ret = new BufferedImage((int) (displayRect.Xmax / unzoom), (int) (displayRect.Ymax / unzoom), BufferedImage.TYPE_INT_ARGB);