Mercurial > mm7
diff UI/Books/UISpellBook.cpp @ 2212:e18200fcfb50
LoadTextureFromLOD
author | Ritor1 |
---|---|
date | Thu, 13 Feb 2014 01:02:04 +0600 |
parents | 42c8807225a2 |
children | aff7a7b072b7 |
line wrap: on
line diff
--- a/UI/Books/UISpellBook.cpp Wed Feb 12 20:51:37 2014 +0600 +++ b/UI/Books/UISpellBook.cpp Thu Feb 13 01:02:04 2014 +0600 @@ -103,7 +103,7 @@ { pX_coord = pViewport->uViewportTL_X + pIconPos[player->lastOpenedSpellbookPage][pSpellbookSpellIndices[player->lastOpenedSpellbookPage][i]].Xpos; pY_coord = pViewport->uViewportTL_Y + pIconPos[player->lastOpenedSpellbookPage][pSpellbookSpellIndices[player->lastOpenedSpellbookPage][i]].Ypos; - if ( BYTE1(pTexture->pBits) & 2 ) + if ( pTexture->pBits & 0x200 ) pRenderer->DrawTextureTransparent(pX_coord, pY_coord, pTexture); else pRenderer->DrawTextureIndexed(pX_coord, pY_coord, pTexture); @@ -123,7 +123,7 @@ { pX_coord = pViewport->uViewportTL_X + pIconPos[player->lastOpenedSpellbookPage][pSpellbookSpellIndices[player->lastOpenedSpellbookPage][v10]].Xpos; pY_coord = pViewport->uViewportTL_Y + pIconPos[player->lastOpenedSpellbookPage][pSpellbookSpellIndices[player->lastOpenedSpellbookPage][v10]].Ypos; - if ( BYTE1(SBPageCSpellsTextureList[v10]->pBits) & 2 ) + if ( SBPageCSpellsTextureList[v10]->pBits & 0x200 ) pRenderer->DrawTextureTransparent(pX_coord, pY_coord, SBPageCSpellsTextureList[v10]); else pRenderer->DrawTextureIndexed(pX_coord, pY_coord, SBPageCSpellsTextureList[v10]);