Description
I think GuiResource is buggy when we want to get the same image in two different sizes.
I propose to correct as follows:
public Image getImage( String location, ClassLoader classLoader, int width, int height ) {
// Build image key for a specific size
++ StringBuilder builder = new StringBuilder(location);
++ builder.append('|');
++ builder.append(width);
++ builder.append('|');
++ builder.append(height);
++ String key = builder.toString();
– Image image = imageMap.get( location );
++ Image image = imageMap.get( key );
if ( image == null )
return image;
}