| 638 | void CEditorView::OnUpdateViewTexturemine(CCmdUI *pCmdUI) { pCmdUI->SetCheck(D3EditState.texscr_visible); } |
| 639 | |
| 640 | void CEditorView::OnViewTexturemine() { |
| 641 | RECT texture_rect; |
| 642 | |
| 643 | D3EditState.texscr_visible = !D3EditState.texscr_visible; |
| 644 | |
| 645 | if (!D3EditState.texscr_visible) { |
| 646 | if (D3EditState.tile_views) { |
| 647 | DeactivateView(); |
| 648 | ActivateView(); |
| 649 | } else if (theApp.textured_view) |
| 650 | m_grwndTexture.DestroyWindow(); |
| 651 | } else { |
| 652 | if (D3EditState.tile_views) { // for tiling, reinit the views. |
| 653 | DeactivateView(); |
| 654 | ActivateView(); |
| 655 | } else { |
| 656 | SetRect(&texture_rect, D3EditState.texscr_x, D3EditState.texscr_y, D3EditState.texscr_x + D3EditState.texscr_w, |
| 657 | D3EditState.texscr_y + D3EditState.texscr_h); |
| 658 | m_grwndTexture.Create(texture_rect, TRUE, this); |
| 659 | } |
| 660 | } |
| 661 | } |
| 662 | |
| 663 | void CEditorView::OnUpdateViewWireframemine(CCmdUI *pCmdUI) { pCmdUI->SetCheck(D3EditState.wirescr_visible); } |
| 664 |
nothing calls this directly
no test coverage detected