Previous 15994 Revisions Next

r7398 Wednesday 17th February, 2010 at 18:07:57 UTC by Firewave
[MESSUI] More VS2008 compilation fixes
[src/mess/osd/winui]messui.c
[src/osd/winui]mui_opts.c picker.c

src/osd/winui/picker.c
r7397r7398
12081208   return szShort;
12091209}
12101210
1211#define ListView_GetItemRect_Modified(hwnd,i,prc,code) (WINBOOL)SNDMSG((hwnd),LVM_GETITEMRECT,(WPARAM)(int)(i),(((RECT *)(prc))->left = (code),(LPARAM)(RECT *)(prc)))
1211#define ListView_GetItemRect_Modified(hwnd,i,prc,code) (BOOL)SNDMSG((hwnd),LVM_GETITEMRECT,(WPARAM)(int)(i),(((RECT *)(prc))->left = (code),(LPARAM)(RECT *)(prc)))
12121212
12131213void Picker_HandleDrawItem(HWND hWnd, LPDRAWITEMSTRUCT lpDrawItemStruct)
12141214{
src/osd/winui/mui_opts.c
r7397r7398
21562156/* Parse the given comma-delimited string into a LOGFONT structure */
21572157static void FontDecodeString(const char* str, LOGFONT *f)
21582158{
2159   char*    ptr;
2160   TCHAR*     t_ptr;
2159   const char*   ptr;
2160   TCHAR*      t_ptr;
21612161
21622162   sscanf(str, "%li,%li,%li,%li,%li,%i,%i,%i,%i,%i,%i,%i,%i",
21632163         &f->lfHeight,
src/mess/osd/winui/messui.c
r7397r7398
942942
943943   SetupImageTypes(config, imagetypes, ARRAY_LENGTH(imagetypes), TRUE, dev);
944944   bResult = CommonFileImageDialog(s, GetOpenFileName, pszFilename, config, imagetypes);
945   
946   /* TODO: free() calls? */
945947
946948   return bResult;
947949}
r7397r7398
10031005
10041006   SetupImageTypes(config, imagetypes, ARRAY_LENGTH(imagetypes), TRUE, dev);
10051007   bResult = CommonFileImageDialog(s, GetSaveFileName, pszFilename, config, imagetypes);
1008   
1009   /* TODO: free() calls? */
10061010
10071011   return bResult;
10081012}
r7397r7398
11141118{
11151119   LPCSTR pszFullName;
11161120   LPCSTR pszName;
1121   const char* tmp;
11171122   LPSTR s;
11181123   int drvindex;
11191124   HWND hwndList;
r7397r7398
11261131
11271132      // Get the fullname and partialname for this file
11281133      pszFullName = SoftwarePicker_LookupFilename(hwndSoftwarePicker, nItem);
1129      s = strchr(pszFullName, '\\');
1130      pszName = s ? s + 1 : pszFullName;
1134      tmp = strchr(pszFullName, '\\');
1135      pszName = tmp ? tmp + 1 : pszFullName;
11311136
11321137      // Do the dirty work
11331138      MessSpecifyImage(drvindex, NULL, pszFullName);

Previous 15994 Revisions Next


© 1998-2018 The MESS Team