Mercurial > mm7
diff GUI/UI/Chest.cpp @ 2573:0c67be4ec900
DrawTextureIndexed renamed to DrawTextureTransparentColorKey
Changing more class Texture to class Image.
author | a.parshin |
---|---|
date | Sat, 05 Mar 2016 16:25:53 +0200 |
parents | fb42e2662c38 |
children | dd36326a9994 |
line wrap: on
line diff
--- a/GUI/UI/Chest.cpp Sat Mar 05 01:51:54 2016 +0200 +++ b/GUI/UI/Chest.cpp Sat Mar 05 16:25:53 2016 +0200 @@ -46,7 +46,7 @@ pRenderer->ClearZBuffer(0, 479); draw_leather(); CharacterUI_InventoryTab_Draw(pPlayers[uActiveCharacter], true); - pRenderer->DrawTextureIndexed(pBtn_ExitCancel->uX, pBtn_ExitCancel->uY, pIcons_LOD->GetTexture(uExitCancelTextureId)); + pRenderer->DrawTextureAlphaNew(pBtn_ExitCancel->uX/640.0f, pBtn_ExitCancel->uY/480.0f, ui_exit_cancel_button_background); } else if (current_screen_type == SCREEN_CHEST) { @@ -85,7 +85,7 @@ chestHeghtCells = pChestHeightsByType[chestBitmapId]; sprintfex(pTmpBuf.data(), "chest%02d", pChestList->pChests[chestBitmapId].uTextureID); v5 = pIcons_LOD->LoadTexture(pTmpBuf.data(), TEXTURE_16BIT_PALETTE); - pRenderer->DrawTextureIndexed(8u, 8u, pIcons_LOD->GetTexture(v5)); + pRenderer->DrawTextureTransparentColorKey(8u, 8u, pIcons_LOD->GetTexture(v5)); for (item_counter = 0; item_counter < chestWidthCells * chestHeghtCells; ++item_counter) { @@ -112,6 +112,6 @@ ZBuffer_DoFill2(&v16[itemPixelPosX + pSRZBufferLineOffsets[itemPixelPosY]], item_texture, item_counter + 1); } } - pRenderer->DrawTextureIndexed(pBtn_ExitCancel->uX, pBtn_ExitCancel->uY, pIcons_LOD->GetTexture(uExitCancelTextureId)); + pRenderer->DrawTextureAlphaNew(pBtn_ExitCancel->uX/640.0f, pBtn_ExitCancel->uY/480.0f, ui_exit_cancel_button_background); } } \ No newline at end of file