From 09247167dc17f45fc30f32c3dcd5b8280a737537 Mon Sep 17 00:00:00 2001 From: mataes2007 Date: Thu, 17 Nov 2011 19:04:06 +0000 Subject: =?UTF-8?q?=D0=BC=D0=B5=D0=BB=D0=BA=D0=B8=D0=B5=20=D1=84=D0=B8?= =?UTF-8?q?=D0=BA=D1=81=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://miranda-plugins.googlecode.com/svn/trunk@176 e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb --- ieview/TextToken.cpp | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) (limited to 'ieview/TextToken.cpp') diff --git a/ieview/TextToken.cpp b/ieview/TextToken.cpp index f33a42b..bfa2913 100644 --- a/ieview/TextToken.cpp +++ b/ieview/TextToken.cpp @@ -652,10 +652,31 @@ void TextToken::toString(wchar_t **str, int *sizeAlloced) { int len = match2 != NULL ? match2 - match : wcslen(match); match = mir_wstrdup(match); match[len] = 0; - int width = 640; - int height = 390; + int width ; + int height; + int Embedsize = Options::getEmbedsize(); + switch (Embedsize){ + case 0: + width = 320; + height = 205; + break; + case 1: + width = 480; + height = 385; + break; + case 2: + width = 560; + height = 349; + break; + case 3: + width = 640; + height = 390; + break; + + }; + Utils::appendText(str, sizeAlloced, L"
\ - \ + \ \ \ \ -- cgit v1.2.3