Previous 15994 Revisions Next

r4409 Wednesday 11th March, 2009 at 02:07:16 UTC by Nathan Woods
1. [WinUI] Seem to be having problems with ImageList_Create()...

2. version.c fix
[src]version.c
[src/osd/winui]winui.c

src/osd/winui/winui.c
r4408r4409
51135113   int icon_count;
51145114   DWORD dwStyle;
51155115   int i;
5116#ifdef MESS
5117   int grow = 3000;
5118#else
5119   int grow = 5000;
5120#endif
51165121
51175122   icon_count = 0;
51185123   while(g_iconData[icon_count].icon_name)
r4408r4409
51305135   SetWindowLong(hwndList,GWL_STYLE,(dwStyle & ~LVS_TYPEMASK) | LVS_ICON);
51315136
51325137   hSmall = ImageList_Create(GetShellSmallIconSize(),GetShellSmallIconSize(),
5133                       ILC_COLORDDB | ILC_MASK, icon_count, icon_count + 5000);
5138                       ILC_COLORDDB | ILC_MASK, icon_count, icon_count + grow);
51345139   hLarge = ImageList_Create(dwLargeIconSize, dwLargeIconSize,
5135                       ILC_COLORDDB | ILC_MASK, icon_count, icon_count + 5000);
5140                       ILC_COLORDDB | ILC_MASK, icon_count, icon_count + grow);
51365141
51375142   if (NULL == hSmall || NULL == hLarge) {
51385143      win_message_box_utf8(hwndList, "Cannot allocate Icon lists", "Allocation error - Exiting", IDOK);
src/version.c
r4408r4409
99
1010***************************************************************************/
1111
12const char build_version[] = "0.129.1 ("__DATE__")";
12const char build_version[] = "0.130 ("__DATE__")";

Previous 15994 Revisions Next


© 1998-2018 The MESS Team