| 728 | } |
| 729 | |
| 730 | bool J2DWindowEx::isUsed(const ResTIMG* resource) |
| 731 | { |
| 732 | for (u8 i = 0; i < 4; i++) { |
| 733 | if (mFrameMaterials[i] != nullptr && mFrameMaterials[i]->mTevBlock != nullptr) { |
| 734 | for (u32 j = 0; j < 8; j++) { |
| 735 | JUTTexture* texture = mFrameMaterials[i]->mTevBlock->getTexture(j); |
| 736 | if (texture != nullptr && texture->mTexInfo == resource) { |
| 737 | return true; |
| 738 | } |
| 739 | } |
| 740 | } |
| 741 | } |
| 742 | if (mContentsMaterial != nullptr && mContentsMaterial->mTevBlock != nullptr) { |
| 743 | for (u32 j = 0; j < 8; j++) { |
| 744 | JUTTexture* texture = mContentsMaterial->mTevBlock->getTexture(j); |
| 745 | if (texture != nullptr && texture->mTexInfo == resource) { |
| 746 | return true; |
| 747 | } |
| 748 | } |
| 749 | } |
| 750 | return J2DPane::isUsed(resource); |
| 751 | } |
| 752 | |
| 753 | void J2DWindowEx::setAnimation(J2DAnmColor* animation) |
| 754 | { |
nothing calls this directly
no test coverage detected