comparison Chest.cpp @ 1458:934074e7fcc1

ModalWindow __thiscall and __cdecl removed Some random renames & refactors
author Nomad
date Wed, 21 Aug 2013 14:26:36 +0200
parents 6de9c1316852
children 7ef4b64f6329
comparison
equal deleted inserted replaced
1457:9dc33590f93e 1458:934074e7fcc1
196 return true; 196 return true;
197 } 197 }
198 198
199 199
200 //----- (0042038D) -------------------------------------------------------- 200 //----- (0042038D) --------------------------------------------------------
201 void __cdecl ChestUI_WritePointedObjectStatusString() 201 void ChestUI_WritePointedObjectStatusString()
202 { 202 {
203 POINT *v0; // esi@2 203 POINT *v0; // esi@2
204 int v1; // ecx@2 204 int v1; // ecx@2
205 const char *v2; // eax@3 205 const char *v2; // eax@3
206 POINT v3; // [sp+0h] [bp-10h]@2 206 POINT v3; // [sp+0h] [bp-10h]@2
280 itemPixelHeght = 14; 280 itemPixelHeght = 14;
281 itemPixelPosX = chest_offs_x + 32 * (item_counter % chestWidthCells) + ((signed int)(v13 - itemPixelWidth)/2); 281 itemPixelPosX = chest_offs_x + 32 * (item_counter % chestWidthCells) + ((signed int)(v13 - itemPixelWidth)/2);
282 itemPixelPosY = chest_offs_y + 32 * (item_counter / chestHeghtCells) + 282 itemPixelPosY = chest_offs_y + 32 * (item_counter / chestHeghtCells) +
283 ((signed int)(((itemPixelHeght - 14) & 0xFFFFFFE0) + 32- item_texture->uTextureHeight ) /2); 283 ((signed int)(((itemPixelHeght - 14) & 0xFFFFFFE0) + 32- item_texture->uTextureHeight ) /2);
284 pRenderer->DrawTextureTransparent( itemPixelPosX, itemPixelPosY, item_texture); 284 pRenderer->DrawTextureTransparent( itemPixelPosX, itemPixelPosY, item_texture);
285 sub_40F92A(&v16[itemPixelPosX + pSRZBufferLineOffsets[itemPixelPosY]], item_texture, item_counter + 1); 285 ZBuffer_DoFill2(&v16[itemPixelPosX + pSRZBufferLineOffsets[itemPixelPosY]], item_texture, item_counter + 1);
286 } 286 }
287 } 287 }
288 pRenderer->DrawTextureIndexed(pBtn_ExitCancel->uX, pBtn_ExitCancel->uY, pIcons_LOD->GetTexture(uExitCancelTextureId)); 288 pRenderer->DrawTextureIndexed(pBtn_ExitCancel->uX, pBtn_ExitCancel->uY, pIcons_LOD->GetTexture(uExitCancelTextureId));
289 } 289 }
290 290
789 } 789 }
790 v3->Reset(); 790 v3->Reset();
791 } 791 }
792 // 506128: using guessed type int areWeLoadingTexture; 792 // 506128: using guessed type int areWeLoadingTexture;
793 //----- (00420E01) -------------------------------------------------------- 793 //----- (00420E01) --------------------------------------------------------
794 void __cdecl OnChestLeftClick() 794 void OnChestLeftClick()
795 { 795 {
796 int chest_id; // edi@1 796 int chest_id; // edi@1
797 POINT *v1; // esi@2 797 POINT *v1; // esi@2
798 int v2; // eax@2 798 int v2; // eax@2
799 int v3; // ebx@4 799 int v3; // ebx@4