Previous 15994 Revisions Next

r7911 Tuesday 27th April, 2010 at 13:53:47 UTC by Firewave
[MESSUI] Cleaned up SoftwarePicker_GetItemImage() to avoid GCC 4.5.0 warnings, redefinitions and unused code
[src/mess/osd/winui]messui.c

src/mess/osd/winui/messui.c
r7910r7911
206206
207207
208208//============================================================
209//  Image types
210//
211//  IO_ZIP is used for ZIP files
212//  IO_UNKNOWN is used for unknown types
213//  IO_BAD is used for bad files
214//============================================================
215
216#define IO_ZIP      (IO_COUNT + 0)
217#define IO_BAD      (IO_COUNT + 1)
218#define IO_UNKNOWN   (IO_COUNT + 2)
219
220//============================================================
221209//  IMPLEMENTATION
222210//============================================================
223211
r7910r7911
10821070   nIcon = GetMessIcon(drvindex, nType);
10831071   if (!nIcon)
10841072   {
1085      if (nType == 0)
1086         nType = (iodevice_t)IO_BAD;
10871073      switch(nType)
10881074      {
10891075         case IO_UNKNOWN:
1090            // Unknowns
1091            nIcon = FindIconIndex(IDI_WIN_UNKNOWN);
1092            break;
1093
1094         case IO_BAD:
1095         case IO_ZIP:
1096            // Bad files
10971076            nIcon = FindIconIndex(IDI_WIN_REDX);
10981077            break;
10991078
r7910r7911
11031082               icon_name = device_typename(nType);
11041083            nIcon = FindIconIndexByName(icon_name);
11051084            if (nIcon < 0)
1106               nIcon = FindIconIndexByName("unknown");
1085               nIcon = FindIconIndex(IDI_WIN_UNKNOWN);
11071086            break;
11081087      }
11091088    }

Previous 15994 Revisions Next


© 1998-2018 The MESS Team