summaryrefslogtreecommitdiff
path: root/plugins/SmileyAdd/src/smltool.cpp
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2015-09-26 11:30:55 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2015-09-26 11:30:55 +0000
commiteaba7e578572237c2f84dd27814478f325bc70ef (patch)
treea25581746af64b8466b011411a143725664f8a12 /plugins/SmileyAdd/src/smltool.cpp
parent967cc9aef5dcba6aed060616f701a15ad670c9e9 (diff)
SmileyAdd: option for horisontal sorting
git-svn-id: http://svn.miranda-ng.org/main/trunk@15446 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SmileyAdd/src/smltool.cpp')
-rw-r--r--plugins/SmileyAdd/src/smltool.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/SmileyAdd/src/smltool.cpp b/plugins/SmileyAdd/src/smltool.cpp
index f4b6c9ba5d..55e52dc7a0 100644
--- a/plugins/SmileyAdd/src/smltool.cpp
+++ b/plugins/SmileyAdd/src/smltool.cpp
@@ -639,7 +639,7 @@ void SmileyToolWindowType::CreateSmileyWinDim(void)
const int colsz = m_ButtonSize.cy + m_ButtonSpace;
int wndsz = min((int)m_BitmapWidth.cy, GetSystemMetrics(SM_CYSCREEN) / 2);
- if (opt.IEViewStyle) wndsz = min(wndsz, 250);
+ if (opt.IEViewStyle) wndsz = min(wndsz, 400);
if (m_pSmileyPack->win.x != 0 && m_pSmileyPack->win.y != 0)
wndsz = min(wndsz, m_pSmileyPack->win.y * (m_ButtonSize.cy + (int)m_ButtonSpace) + (int)m_ButtonSpace);
@@ -688,7 +688,7 @@ RECT SmileyToolWindowType::CalculateButtonToCoordinates(int buttonPosition, int
{
int row, rowpos;
- if (opt.IEViewStyle)
+ if (opt.HorisontalSorting)
{
row = buttonPosition / m_NumberOfHorizontalButtons;
rowpos = buttonPosition % m_NumberOfHorizontalButtons;
@@ -715,7 +715,7 @@ int SmileyToolWindowType::CalculateCoordinatesToButton(POINT pt, int scroll)
const int row = (pt.y - m_ButtonSpace) / (m_ButtonSize.cy + m_ButtonSpace) + scroll;
int pos;
- if (opt.IEViewStyle)
+ if (opt.HorisontalSorting)
pos = m_NumberOfHorizontalButtons * row + rowpos;
else
pos = m_NumberOfVerticalButtons * rowpos + row;