final void method1524() {
	int i = getSpriteWidth();
	int i_113_ = getIndexHeightTotal();
	if (((ImageSprite) this).indexWidth != i
	    || ((ImageSprite) this).indexHeight != i_113_) {
	    byte[] is = new byte[i * i_113_];
	    if (((ImageSprite) this).alphaIndex != null) {
		byte[] is_114_ = new byte[i * i_113_];
		for (int i_115_ = 0; i_115_ < ((ImageSprite) this).indexHeight;
		     i_115_++) {
		    int i_116_ = i_115_ * ((ImageSprite) this).indexWidth;
		    int i_117_ = ((i_115_ + ((ImageSprite) this).heightOffset) * i
				  + ((ImageSprite) this).widthOffset);
		    for (int i_118_ = 0; i_118_ < ((ImageSprite) this).indexWidth;
			 i_118_++) {
			is[i_117_] = ((ImageSprite) this).colorIndex[i_116_];
			is_114_[i_117_++]
			    = ((ImageSprite) this).alphaIndex[i_116_++];
		    }
		}
		((ImageSprite) this).alphaIndex = is_114_;
	    } else {
		for (int i_119_ = 0; i_119_ < ((ImageSprite) this).indexHeight;
		     i_119_++) {
		    int i_120_ = i_119_ * ((ImageSprite) this).indexWidth;
		    int i_121_ = ((i_119_ + ((ImageSprite) this).heightOffset) * i
				  + ((ImageSprite) this).widthOffset);
		    for (int i_122_ = 0; i_122_ < ((ImageSprite) this).indexWidth;
			 i_122_++)
			is[i_121_++]
			    = ((ImageSprite) this).colorIndex[i_120_++];
		}
	    }
	    ((ImageSprite) this).widthOffset = ((ImageSprite) this).widthPadding
		= ((ImageSprite) this).heightOffset = ((ImageSprite) this).heightPadding
		= 0;
	    ((ImageSprite) this).indexWidth = i;
	    ((ImageSprite) this).indexHeight = i_113_;
	    ((ImageSprite) this).colorIndex = is;
	}
    }