Mercurial > mm7
diff Mouse.cpp @ 973:ec7568e13b24
Minor code cleaning.
author | Nomad |
---|---|
date | Wed, 08 May 2013 21:37:12 +0200 |
parents | c8a0f6d89c70 |
children | e865f349aa41 c45d51b3f4f4 |
line wrap: on
line diff
--- a/Mouse.cpp Wed May 08 19:54:19 2013 +0200 +++ b/Mouse.cpp Wed May 08 21:37:12 2013 +0200 @@ -254,8 +254,8 @@ //----- (00469C0D) -------------------------------------------------------- void *Mouse::DoAllocCursorMem() { - return malloc(4 * (this->uCursorTextureID != -1 ? pIcons_LOD->pTextures[this->uCursorTextureID].uTextureWidth : 24) - * (this->uCursorTextureID != -1 ? pIcons_LOD->pTextures[this->uCursorTextureID].uTextureHeight : 26)); + auto tex = pIcons_LOD->GetTexture(uCursorTextureID); + return malloc(4 * tex->uTextureWidth * tex->uTextureHeight); } //----- (00469C39) --------------------------------------------------------