Mercurial > mm7
diff UIBooks.cpp @ 710:735dab8d3c9a
Town portal screen + misc gui const replacements
author | Nomad |
---|---|
date | Thu, 21 Mar 2013 20:30:17 +0200 |
parents | af08fc9e29c8 |
children | e7c86528a2b3 |
line wrap: on
line diff
--- a/UIBooks.cpp Thu Mar 21 12:37:49 2013 +0200 +++ b/UIBooks.cpp Thu Mar 21 20:30:17 2013 +0200 @@ -234,7 +234,7 @@ v23 = dword_506408[v4]; v6 = v5; } - if ( v6->pLevelOfDetail0 ) + if ( v6->pLevelOfDetail0_prolly_alpha_mask ) { v7 = v0->lastOpenedSpellbookPage; // v7 = (12 * v0->lastOpenedSpellbookPage + pSpellbookSpellIndices[v0->lastOpenedSpellbookPage][v4]); @@ -244,7 +244,7 @@ pRenderer->DrawTextureTransparent(v17, v19, v6); else pRenderer->DrawTextureIndexed(v17, v19, v6); - pRenderer->_4A612A(pIconPos[v7][pSpellbookSpellIndices[v7][v4]].Xpos, + pRenderer->DrawMaskToZBuffer(pIconPos[v7][pSpellbookSpellIndices[v7][v4]].Xpos, pIconPos[v7][pSpellbookSpellIndices[v7][v4]].Ypos, v23, v4); } } @@ -258,7 +258,7 @@ if ( v10 ) { v11 = dword_5063D8[v10]; - if ( v11->pLevelOfDetail0 ) + if ( v11->pLevelOfDetail0_prolly_alpha_mask ) { v21 = dword_5063D8[v10]; v12 = v0->lastOpenedSpellbookPage; @@ -1157,7 +1157,7 @@ screenWidth = br_x - tl_x + 1; screenHeight = br_y - tl_y + 1; render16_data = &pRenderer->pTargetSurface[tl_x + tl_y * surfPitch]; - texture8_data = pIcons_LOD->pTextures[viewparams->uTextureID_LocationMap].pLevelOfDetail0; + texture8_data = pIcons_LOD->pTextures[viewparams->uTextureID_LocationMap].pLevelOfDetail0_prolly_alpha_mask; pPalette_16 = pIcons_LOD->pTextures[viewparams->uTextureID_LocationMap].pPalette16; scale_increment = (1 << (pIcons_LOD->pTextures[viewparams->uTextureID_LocationMap].uWidthLn2 + 16)) / v5;