diff options
author | ElzorFox <elzorfox@ya.ru> | 2024-04-27 16:20:56 +0500 |
---|---|---|
committer | ElzorFox <elzorfox@ya.ru> | 2024-04-27 16:20:56 +0500 |
commit | e55972fa316f61a21034cc6120cc475eb30de2b5 (patch) | |
tree | 4742f88b57f3e523f309c201e9f46ad41e983a8e | |
parent | 0de8ee711879b9004eb673713d3d78fc7ee4916b (diff) |
VKontakte: fix max 320 px for image setting
-rw-r--r-- | protocols/VKontakte/res/resource.rc | 2 | ||||
-rw-r--r-- | protocols/VKontakte/src/misc.cpp | 1 | ||||
-rw-r--r-- | protocols/VKontakte/src/version.h | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/protocols/VKontakte/res/resource.rc b/protocols/VKontakte/res/resource.rc index cc2ac73f3b..227573da36 100644 --- a/protocols/VKontakte/res/resource.rc +++ b/protocols/VKontakte/res/resource.rc @@ -186,7 +186,7 @@ BEGIN CONTROL "Support BBC for NewStory",IDC_BBC_NEWSTORY,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,10,10,278,10
GROUPBOX "[img] BBCode support for image",IDC_STATIC,13,20,280,44,WS_GROUP
CONTROL "off",IDC_IMG_OFF,"Button",BS_AUTORADIOBUTTON,21,29,129,10
- CONTROL "for preview max width 300 px",IDC_IMG_300,"Button",BS_AUTORADIOBUTTON,21,40,129,10
+ CONTROL "for preview max height 320 px",IDC_IMG_300,"Button",BS_AUTORADIOBUTTON,21,40,129,10
CONTROL "for original size images",IDC_IMG_FULLSIZE,"Button",BS_AUTORADIOBUTTON,21,51,129,10
CONTROL "for preview max 130*130 px",IDC_IMG_130,"Button",BS_AUTORADIOBUTTON,163,29,127,10
CONTROL "for preview max 604*604 px",IDC_IMG_604,"Button",BS_AUTORADIOBUTTON,163,40,128,10
diff --git a/protocols/VKontakte/src/misc.cpp b/protocols/VKontakte/src/misc.cpp index 2a8b48158f..3fdf4124c7 100644 --- a/protocols/VKontakte/src/misc.cpp +++ b/protocols/VKontakte/src/misc.cpp @@ -1134,6 +1134,7 @@ CMStringW CVkProto::GetVkPhotoItem(const JSONNode &jnPhoto, BBCSupport iBBC, MCO case imgPreview300:
wszPreviewLink = vkSizes[wszPriorSize.Find(L"q")].wszUrl.IsEmpty() ? (vkSizes[wszPriorSize.Find(L"x")].wszUrl.IsEmpty() ? vkSizes[wszPriorSize.Find(L"o")].wszUrl : vkSizes[wszPriorSize.Find(L"x")].wszUrl) : vkSizes[wszPriorSize.Find(L"q")].wszUrl;
iPreviewHeight = vkSizes[wszPriorSize.Find(L"q")].wszUrl.IsEmpty() ? (vkSizes[wszPriorSize.Find(L"x")].wszUrl.IsEmpty() ? vkSizes[wszPriorSize.Find(L"o")].iSizeH : vkSizes[wszPriorSize.Find(L"x")].iSizeH) : vkSizes[wszPriorSize.Find(L"q")].iSizeH;
+ iPreviewHeight = min(320, iPreviewHeight);
break;
case imgFullSize:
wszPreviewLink = vkSizes[iMaxSize].wszUrl;
diff --git a/protocols/VKontakte/src/version.h b/protocols/VKontakte/src/version.h index 926781be19..31407d4baa 100644 --- a/protocols/VKontakte/src/version.h +++ b/protocols/VKontakte/src/version.h @@ -1,7 +1,7 @@ #define __MAJOR_VERSION 0
#define __MINOR_VERSION 1
#define __RELEASE_NUM 16
-#define __BUILD_NUM 7
+#define __BUILD_NUM 8
#include <stdver.h>
|