Previous 15994 Revisions Next

r2490 Sunday 27th April, 2008 at 14:57:57 UTC by Nathan Woods
[Windows GUI] Fixed bug #1587
[src/mess/osd/winui]messui.c

src/mess/osd/winui/messui.c
r2489r2490
539539
540540
541541
542static void MessRemoveImage(int drvindex, const device_config *device, LPCSTR pszFilename)
542static void MessRemoveImage(int drvindex, const char *pszFilename)
543543{
544   if (device != NULL)
545      MessSpecifyImage(drvindex, device, NULL);
544   const device_config *device;
545   const char *s;
546
547   for (device = image_device_first(config->mconfig); device != NULL; device = image_device_next(device))
548   {
549      s = GetSelectedSoftware(drvindex, config->mconfig, device);
550      if ((s != NULL) && !strcmp(pszFilename, s))
551         MessSpecifyImage(drvindex, device, NULL);
552   }
546553}
547554
548555
r2489r2490
964971static void SoftwarePicker_LeavingItem(HWND hwndSoftwarePicker, int nItem)
965972{
966973   int drvindex;
967   const device_config *device;
968   LPCSTR pszFullName;
974   const char *pszFullName;
969975   HWND hwndList;
970976
971977   if (!s_bIgnoreSoftwarePickerNotifies)
972978   {
973979      hwndList = GetDlgItem(GetMainWindow(), IDC_LIST);
974980      drvindex = Picker_GetSelectedItem(hwndList);
975      device = SoftwarePicker_LookupDevice(hwndSoftwarePicker, nItem);
976981      pszFullName = SoftwarePicker_LookupFilename(hwndSoftwarePicker, nItem);
977982
978      MessRemoveImage(drvindex, device, pszFullName);
983      MessRemoveImage(drvindex, pszFullName);
979984   }
980985}
981986

Previous 15994 Revisions Next


© 1998-2018 The MESS Team