From 799f5807fe6c3797787768b385e7e7c22a26a6c2 Mon Sep 17 00:00:00 2001
From: Alexander Lantsev <aunsane@gmail.com>
Date: Wed, 24 Jun 2015 08:08:18 +0000
Subject: Tox: fixed big avatar setting

git-svn-id: http://svn.miranda-ng.org/main/trunk@14357 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
---
 protocols/Tox/src/tox_avatars.cpp | 5 +++++
 1 file changed, 5 insertions(+)

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;
 	}
-- 
cgit v1.2.3