From c2dd106d2da0d6c0118662efe485135150c0de41 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Sun, 24 May 2015 17:02:28 +0000 Subject: 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 --- plugins/AVS/src/utils.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/AVS/src/utils.cpp') 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; -- cgit v1.2.3