support scaling of avatar texture - multiples of 35x50

default was 35x50 avatar texture, if using 3x  (105x150), it will scale
it :)
This commit is contained in:
Anthony Calosa
2015-10-07 10:57:08 +08:00
parent 45b570b6f7
commit fb89183767
2 changed files with 6 additions and 6 deletions

View File

@@ -89,7 +89,7 @@ bool Player::loadAvatar(string file, string resName)
}
mAvatarTex = rm->RetrieveTexture(file, RETRIEVE_LOCK, TEXTURE_SUB_AVATAR);
if (mAvatarTex) {
mAvatar = rm->RetrieveQuad(file, 0, 0, 35, 50, resName, RETRIEVE_NORMAL, TEXTURE_SUB_AVATAR);
mAvatar = rm->RetrieveQuad(file, 0, 0, 0, 0, resName, RETRIEVE_NORMAL, TEXTURE_SUB_AVATAR);
return true;
}