summaryrefslogtreecommitdiff
path: root/plugins/AVS
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2015-05-24 17:02:28 +0000
committerAlexander Lantsev <aunsane@gmail.com>2015-05-24 17:02:28 +0000
commitc2dd106d2da0d6c0118662efe485135150c0de41 (patch)
treee80512abf191cec36e67f6a9be52ac5d7c397bcc /plugins/AVS
parent09cb37f721442717a5668594d140f5ebca42006e (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.cpp6
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;