diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-06-24 08:08:18 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-06-24 08:08:18 +0000 |
commit | 799f5807fe6c3797787768b385e7e7c22a26a6c2 (patch) | |
tree | dc04ec135a58d5138f939385e0c93f3b9e077d5d /protocols/Tox/src/tox_avatars.cpp | |
parent | 4e669093efc004d8650853845611b857427d6256 (diff) |
Tox: fixed big avatar setting
git-svn-id: http://svn.miranda-ng.org/main/trunk@14357 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox/src/tox_avatars.cpp')
-rw-r--r-- | protocols/Tox/src/tox_avatars.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/protocols/Tox/src/tox_avatars.cpp b/protocols/Tox/src/tox_avatars.cpp index fada4ad92c..a819f1bd3f 100644 --- a/protocols/Tox/src/tox_avatars.cpp +++ b/protocols/Tox/src/tox_avatars.cpp @@ -112,6 +112,11 @@ INT_PTR CToxProto::GetAvatarCaps(WPARAM wParam, LPARAM lParam) case AF_FORMATSUPPORTED:
return lParam == PA_FORMAT_PNG;
+ case AF_MAXSIZE:
+ ((POINT*)lParam)->x = 300;
+ ((POINT*)lParam)->y = 300;
+ return 0;
+
case AF_MAXFILESIZE:
return TOX_MAX_AVATAR_SIZE;
}
|