comparison Mouse.cpp @ 973:ec7568e13b24

Minor code cleaning.
author Nomad
date Wed, 08 May 2013 21:37:12 +0200
parents c8a0f6d89c70
children e865f349aa41 c45d51b3f4f4
comparison
equal deleted inserted replaced
972:c8a0f6d89c70 973:ec7568e13b24
252 } 252 }
253 253
254 //----- (00469C0D) -------------------------------------------------------- 254 //----- (00469C0D) --------------------------------------------------------
255 void *Mouse::DoAllocCursorMem() 255 void *Mouse::DoAllocCursorMem()
256 { 256 {
257 return malloc(4 * (this->uCursorTextureID != -1 ? pIcons_LOD->pTextures[this->uCursorTextureID].uTextureWidth : 24) 257 auto tex = pIcons_LOD->GetTexture(uCursorTextureID);
258 * (this->uCursorTextureID != -1 ? pIcons_LOD->pTextures[this->uCursorTextureID].uTextureHeight : 26)); 258 return malloc(4 * tex->uTextureWidth * tex->uTextureHeight);
259 } 259 }
260 260
261 //----- (00469C39) -------------------------------------------------------- 261 //----- (00469C39) --------------------------------------------------------
262 POINT *Mouse::GetCursorPos(POINT *a2) 262 POINT *Mouse::GetCursorPos(POINT *a2)
263 { 263 {