Mercurial > mm7
diff Engine/Graphics/Overlays.cpp @ 2575:a76d408c5132 tip
DrawTranslucent -> DrawTextureGrayShade
Removed old texture drawing stuff
author | a.parshin |
---|---|
date | Wed, 09 Mar 2016 01:39:52 +0200 |
parents | 0c67be4ec900 |
children |
line wrap: on
line diff
--- a/Engine/Graphics/Overlays.cpp Mon Mar 07 03:48:40 2016 +0200 +++ b/Engine/Graphics/Overlays.cpp Wed Mar 09 01:39:52 2016 +0200 @@ -83,7 +83,7 @@ //----- (00441964) -------------------------------------------------------- void OtherOverlayList::DrawTurnBasedIcon(int a2) { - IconFrame *frame; // eax@12 + Icon *frame; // eax@12 unsigned int v5; // [sp-8h] [bp-Ch]@4 if ( current_screen_type != SCREEN_GAME || !pParty->bTurnBasedModeOn) @@ -102,7 +102,7 @@ else if ( pTurnEngine->turn_stage == TE_ATTACK )//группа атакует(ладонь) frame = pIconsFrameTable->GetFrame(uIconID_TurnStop, pEventTimer->uStartTime); //if ( pRenderer->pRenderD3D ) - pRenderer->DrawTextureTransparentColorKey(394, 288, &pIcons_LOD->pTextures[frame->uTextureID]); + pRenderer->DrawTextureAlphaNew(394/640.0f, 288/480.0f, frame->texture); /*else pRenderer->DrawTextureIndexedAlpha(0x18Au, 0x120u, v7);*/ if ( dword_50C994 < dword_50C998_turnbased_icon_1A )