diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-05-24 17:02:28 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-05-24 17:02:28 +0000 |
commit | c2dd106d2da0d6c0118662efe485135150c0de41 (patch) | |
tree | e80512abf191cec36e67f6a9be52ac5d7c397bcc /plugins/AVS | |
parent | 09cb37f721442717a5668594d140f5ebca42006e (diff) |
AdvaImg: fixed image loading without size restriction
AVS: fixed avatar coordinates
git-svn-id: http://svn.miranda-ng.org/main/trunk@13816 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/AVS')
-rw-r--r-- | plugins/AVS/src/utils.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/AVS/src/utils.cpp b/plugins/AVS/src/utils.cpp index fefbfd0596..0b94ecb461 100644 --- a/plugins/AVS/src/utils.cpp +++ b/plugins/AVS/src/utils.cpp @@ -315,10 +315,10 @@ int Proto_AvatarImageProportion(const char *proto) void Proto_GetAvatarMaxSize(const char *proto, int *width, int *height)
{
if (ProtoServiceExists(proto, PS_GETAVATARCAPS)) {
- POINT maxSize;
+ POINT maxSize = { 0 };
CallProtoService(proto, PS_GETAVATARCAPS, AF_MAXSIZE, (LPARAM)&maxSize);
- *width = maxSize.y;
- *height = maxSize.x;
+ *width = maxSize.x;
+ *height = maxSize.y;
}
else {
*width = 300;
|