comparison Chest.cpp @ 613:5bf285f56fa8

Слияние
author Ritor1
date Thu, 07 Mar 2013 22:45:43 +0600
parents 7bae884b7cd0 db4a23580e6c
children d5b16a44d9b3
comparison
equal deleted inserted replaced
612:346dc5fc2969 613:5bf285f56fa8
300 v12 = itemPixelWidth - 14; 300 v12 = itemPixelWidth - 14;
301 v12 = v12 & 0xFFFFFFE0; 301 v12 = v12 & 0xFFFFFFE0;
302 v13 = v12 + 32; 302 v13 = v12 + 32;
303 if ( itemPixelHeght < 14 ) 303 if ( itemPixelHeght < 14 )
304 itemPixelHeght = 14; 304 itemPixelHeght = 14;
305 itemPixelPosX = chest_offs_x + 32 * (item_counter % chestWidthCells) + ((v13 - itemPixelWidth) >> 1); 305 itemPixelPosX = chest_offs_x + 32 * (item_counter % chestWidthCells) + ((signed int)(v13 - itemPixelWidth)/2);
306 itemPixelPosY = chest_offs_y + 32 * (item_counter / chestHeghtCells) + 306 itemPixelPosY = chest_offs_y + 32 * (item_counter / chestHeghtCells) +
307 ((((itemPixelHeght - 14) & 0xFFFFFFE0) - item_texture->uTextureHeight + 32) >> 1); 307 ((signed int)(((itemPixelHeght - 14) & 0xFFFFFFE0) + 32- item_texture->uTextureHeight ) /2);
308 pRenderer->DrawTextureTransparent( itemPixelPosX, itemPixelPosY, item_texture); 308 pRenderer->DrawTextureTransparent( itemPixelPosX, itemPixelPosY, item_texture);
309 sub_40F92A(&v16[itemPixelPosX + pSRZBufferLineOffsets[itemPixelPosY]], item_texture, item_counter + 1); 309 sub_40F92A(&v16[itemPixelPosX + pSRZBufferLineOffsets[itemPixelPosY]], item_texture, item_counter + 1);
310 } 310 }
311 } 311 }
312 pRenderer->DrawTextureIndexed(pBtn_ExitCancel->uX, pBtn_ExitCancel->uY, 312 pRenderer->DrawTextureIndexed(pBtn_ExitCancel->uX, pBtn_ExitCancel->uY,