From 97a1ad6aa3f9696313a6d1e2e073b1e08a6b5682 Mon Sep 17 00:00:00 2001 From: pescuma Date: Sun, 20 Apr 2008 23:13:28 +0000 Subject: Support for accounts and jabber transports Fix for frame in selection window git-svn-id: http://pescuma.googlecode.com/svn/trunk/Miranda@88 c086bb3d-8645-0410-b8da-73a8550f86e7 --- Plugins/emoticons/options.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Plugins/emoticons/options.cpp') diff --git a/Plugins/emoticons/options.cpp b/Plugins/emoticons/options.cpp index 7f1b513..13a02a4 100644 --- a/Plugins/emoticons/options.cpp +++ b/Plugins/emoticons/options.cpp @@ -130,11 +130,15 @@ static BOOL CALLBACK OptionsDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARA pd->max_height = 0; pd->max_width = 0; srand((unsigned int) time(NULL)); - int prob = (pd->pack->images.getCount() - 15) / 30 + 1; + int prob = (pd->pack->images.getCount() - 15) / 10 + 1; for(int j = 0, count = 0; j < pd->pack->images.getCount() && count < 15; j++) { if (rand() % prob != 0) continue; - pd->pack->images[j]->Load(pd->max_height, pd->max_width); + EmoticonImage *img = pd->pack->images[j]; + if (strncmp(img->name, "flag_", 5) == 0) + if (rand() % 10 != 0) + continue; + img->Load(pd->max_height, pd->max_width); count++; } -- cgit v1.2.3