Mercurial > mm7
diff GUI/UI/Books/UISpellBook.cpp @ 2524:c7264ab7132f
Main menu rendered using d3d11
author | a.parshin |
---|---|
date | Fri, 10 Oct 2014 17:42:05 +0300 |
parents | a77c34acdbc9 |
children | 1bcadc6dd203 |
line wrap: on
line diff
--- a/GUI/UI/Books/UISpellBook.cpp Thu Oct 09 23:33:36 2014 +0300 +++ b/GUI/UI/Books/UISpellBook.cpp Fri Oct 10 17:42:05 2014 +0300 @@ -105,7 +105,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 ( pTexture->pBits & 0x200 ) - pRenderer->DrawTextureTransparent(pX_coord, pY_coord, pTexture); + pRenderer->DrawTextureIndexedAlpha(pX_coord, pY_coord, pTexture); else pRenderer->DrawTextureIndexed(pX_coord, pY_coord, pTexture); pRenderer->DrawMaskToZBuffer(pIconPos[player->lastOpenedSpellbookPage][pSpellbookSpellIndices[player->lastOpenedSpellbookPage][i]].Xpos, @@ -125,7 +125,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 ( SBPageCSpellsTextureList[v10]->pBits & 0x200 ) - pRenderer->DrawTextureTransparent(pX_coord, pY_coord, SBPageCSpellsTextureList[v10]); + pRenderer->DrawTextureIndexedAlpha(pX_coord, pY_coord, SBPageCSpellsTextureList[v10]); else pRenderer->DrawTextureIndexed(pX_coord, pY_coord, SBPageCSpellsTextureList[v10]); } @@ -148,7 +148,7 @@ pX_coord = texture_tab_coord0[i][0]; pY_coord = texture_tab_coord0[i][1]; } - pRenderer->DrawTextureTransparent(pX_coord, pY_coord, pPageTexture); + pRenderer->DrawTextureIndexedAlpha(pX_coord, pY_coord, pPageTexture); } } } \ No newline at end of file