diff Engine/Spells/CastSpellInfo.cpp @ 2574:dd36326a9994

More texture refactoring GetLeather -> DrawTextureCustomHeight
author a.parshin
date Mon, 07 Mar 2016 03:48:40 +0200
parents d569340b05ff
children a76d408c5132
line wrap: on
line diff
--- a/Engine/Spells/CastSpellInfo.cpp	Sat Mar 05 16:25:53 2016 +0200
+++ b/Engine/Spells/CastSpellInfo.cpp	Mon Mar 07 03:48:40 2016 +0200
@@ -3537,15 +3537,15 @@
       {
           pGUIWindow_CastTargetedSpell = new OnCastTargetedSpell(0, 0, window->GetWidth(), window->GetHeight(), (int)&pCastSpellInfo[result], 0);
         pBtn_NPCLeft = pGUIWindow_CastTargetedSpell->CreateButton(469, 178,
-                       pIcons_LOD->GetTexture(uTextureID_Btn_NPCLeft)->uTextureWidth,
-                       pIcons_LOD->GetTexture(uTextureID_Btn_NPCLeft)->uTextureHeight,
+            ui_btn_npc_left->GetWidth(),
+            ui_btn_npc_left->GetHeight(),
                        1, 0, UIMSG_ScrollNPCPanel, 0, 0, "",
-                       pIcons_LOD->GetTexture(uTextureID_Btn_NPCLeft), 0);
+            ui_btn_npc_left, 0);
         pBtn_NPCRight = pGUIWindow_CastTargetedSpell->CreateButton(626, 178,
-                       pIcons_LOD->GetTexture(uTextureID_Btn_NPCRight)->uTextureWidth,
-                       pIcons_LOD->GetTexture(uTextureID_Btn_NPCRight)->uTextureHeight,
+            ui_btn_npc_right->GetWidth(),
+            ui_btn_npc_right->GetHeight(),
                        1, 0, UIMSG_ScrollNPCPanel, 1, 0, "",
-                       pIcons_LOD->GetTexture(uTextureID_Btn_NPCRight), 0);
+            ui_btn_npc_right, 0);
         pGUIWindow_CastTargetedSpell->CreateButton(491, 149, 64, 74, 1, 0, UIMSG_HiredNPC_CastSpell, 4, 0x35u, "", 0);
         pGUIWindow_CastTargetedSpell->CreateButton(561, 149, 64, 74, 1, 0, UIMSG_HiredNPC_CastSpell, 5, 0x36u, "", 0);
       }