From b95d4a9cc2465a53b3bd5ab0805ce9be781ffa8d Mon Sep 17 00:00:00 2001 From: pescuma Date: Mon, 2 Mar 2009 00:58:21 +0000 Subject: emoticons: - fixed and added some emoticons - Added bee emoticon to YAHOO - Fix to avoid showing only one emoticon in a row git-svn-id: http://pescuma.googlecode.com/svn/trunk/Miranda@148 c086bb3d-8645-0410-b8da-73a8550f86e7 --- Plugins/emoticons/EmoticonsSelectionLayout.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Plugins/emoticons/EmoticonsSelectionLayout.cpp') diff --git a/Plugins/emoticons/EmoticonsSelectionLayout.cpp b/Plugins/emoticons/EmoticonsSelectionLayout.cpp index 5c58244..f392853 100644 --- a/Plugins/emoticons/EmoticonsSelectionLayout.cpp +++ b/Plugins/emoticons/EmoticonsSelectionLayout.cpp @@ -144,6 +144,10 @@ int EmoticonsSelectionLayout::GetNumOfCols(int num_emotes) } } } + + if (num_emotes % cols <= max(2, cols /3)) + cols++; + return min(max(MIN_COLS, min(cols, MAX_COLS)), num_emotes); } -- cgit v1.2.3