Reputation: 795
My app has an animated Image set as icon of a Label instance. Since Version 3.3 the image is not painted any more. However the animated() methos ist still called and returns true.
Is that caused by "performance improvements"? What can I do about it?
Upvotes: 1
Views: 52
Reputation: 52770
Are you implementing your own custom subclass of image that relies on draw image?
If so you need to override requiresDrawImage
in that Image subclass as such to disable the performance optimizations in drawing this image:
@Override
public boolean requiresDrawImage() {
return true;
}
Upvotes: 0
Reputation: 795
Ok, I think I found the correct measure: Now my animated image class overrides com.codename1.ui.Image.getImage() and returns the result of getImage() of an Image instance created using com.codename1.ui.Image.createImage(int, int, int) which I previously only used in my method which overrode com.codename1.ui.Image.drawImage(Graphics, Object, int, int). Now apparently drawImage() isn't called anymore, but the getImage() instead.
Upvotes: 1