Previous 15994 Revisions Next

r1432 Monday 24th December, 2007 at 07:31:10 UTC by Nathan Woods
[Windows GUI] Sync with MAME32
[src/osd/winui]mui_util.c winui.c

src/osd/winui/mui_util.c
r1431r1432
368368         {
369369            for (i = 0; drv.sound[i].type && i < MAX_SOUND; i++)
370370            {
371               const char **samplenames = NULL;
371               const char * const * samplenames = NULL;
372372               
373373#if (HAS_SAMPLES || HAS_VLM5030)
374374               for( i = 0; drv.sound[i].type && i < MAX_SOUND; i++ )
src/osd/winui/winui.c
r1431r1432
11381138      /* We would break on NT if we try with a 16bpp image */
11391139      if (((LPBITMAPINFO)IconImage.lpBits)->bmiHeader.biBitCount != 16)
11401140      {
1141         hIcon = CreateIconFromResource(IconImage.lpBits, IconImage.dwNumBytes, TRUE, 0x00030000);
1141         hIcon = CreateIconFromResourceEx(IconImage.lpBits, IconImage.dwNumBytes, TRUE, 0x00030000,0,0,LR_DEFAULTSIZE);
11421142      }
11431143   }
11441144   return hIcon;
r1431r1432
49234923      ImageList_AddIcon(hLarge, hIcon);
49244924      if (nIconPos != -1)
49254925         icon_index[nItem] = nIconPos;
4926      DestroyIcon(hIcon);
49264927   }
49274928   if (icon_index[nItem] == 0)
49284929      icon_index[nItem] = default_icon_index;
r1431r1432
49804981
49814982      ImageList_AddIcon(hSmall, hIcon);
49824983      ImageList_AddIcon(hLarge, hIcon);
4984      DestroyIcon(hIcon);
49834985   }
49844986}
49854987

Previous 15994 Revisions Next


© 1998-2018 The MESS Team