diff options
author | pescuma <pescuma@c086bb3d-8645-0410-b8da-73a8550f86e7> | 2008-04-20 23:13:28 +0000 |
---|---|---|
committer | pescuma <pescuma@c086bb3d-8645-0410-b8da-73a8550f86e7> | 2008-04-20 23:13:28 +0000 |
commit | 97a1ad6aa3f9696313a6d1e2e073b1e08a6b5682 (patch) | |
tree | 3fa5c0c9e27a2abc9e0d8d07c7b7dffb07c31bb3 /Plugins/emoticons/options.cpp | |
parent | bc4d907594198a9c0de29e08916714f0d8eaea15 (diff) |
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
Diffstat (limited to 'Plugins/emoticons/options.cpp')
-rw-r--r-- | Plugins/emoticons/options.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
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++;
}
|