| 434 | } |
| 435 | |
| 436 | void J2DWindowEx::draw(const JGeometry::TBox2f& p1) |
| 437 | { |
| 438 | bool isMissingTexture = false; |
| 439 | JUTTexture* local_68[4]; |
| 440 | for (int i = 0; i < 4; i++) { |
| 441 | if (mFrameMaterials[i] == nullptr) { |
| 442 | return; |
| 443 | } |
| 444 | if (mFrameMaterials[i]->getTevBlock() == nullptr) { |
| 445 | return; |
| 446 | } |
| 447 | local_68[i] = mFrameMaterials[i]->getTevBlock()->getTexture(0); |
| 448 | if (local_68[i] == nullptr) { |
| 449 | isMissingTexture = true; |
| 450 | } |
| 451 | } |
| 452 | JGeometry::TBox2<f32> aTStack_78; |
| 453 | if (!isMissingTexture) { |
| 454 | aTStack_78.set(local_68[0]->getWidth(), local_68[0]->getHeight(), p1.getWidth() - local_68[1]->getWidth(), |
| 455 | p1.getHeight() - local_68[2]->getHeight()); |
| 456 | } else { |
| 457 | aTStack_78.set(0.0f, 0.0f, p1.getWidth(), p1.getHeight()); |
| 458 | } |
| 459 | draw(p1, aTStack_78); |
| 460 | } |
| 461 | |
| 462 | void J2DWindowEx::draw(const JGeometry::TBox2<f32>& p1, const JGeometry::TBox2<f32>& p2) |
| 463 | { |
nothing calls this directly
no test coverage detected