src/osd/winui/picker.c
| r7397 | r7398 | |
| 1208 | 1208 | return szShort; |
| 1209 | 1209 | } |
| 1210 | 1210 | |
| 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))) |
| 1212 | 1212 | |
| 1213 | 1213 | void Picker_HandleDrawItem(HWND hWnd, LPDRAWITEMSTRUCT lpDrawItemStruct) |
| 1214 | 1214 | { |
src/osd/winui/mui_opts.c
| r7397 | r7398 | |
| 2156 | 2156 | /* Parse the given comma-delimited string into a LOGFONT structure */ |
| 2157 | 2157 | static void FontDecodeString(const char* str, LOGFONT *f) |
| 2158 | 2158 | { |
| 2159 | | char* ptr; |
| 2160 | | TCHAR* t_ptr; |
| 2159 | const char* ptr; |
| 2160 | TCHAR* t_ptr; |
| 2161 | 2161 | |
| 2162 | 2162 | sscanf(str, "%li,%li,%li,%li,%li,%i,%i,%i,%i,%i,%i,%i,%i", |
| 2163 | 2163 | &f->lfHeight, |
src/mess/osd/winui/messui.c
| r7397 | r7398 | |
| 942 | 942 | |
| 943 | 943 | SetupImageTypes(config, imagetypes, ARRAY_LENGTH(imagetypes), TRUE, dev); |
| 944 | 944 | bResult = CommonFileImageDialog(s, GetOpenFileName, pszFilename, config, imagetypes); |
| 945 | |
| 946 | /* TODO: free() calls? */ |
| 945 | 947 | |
| 946 | 948 | return bResult; |
| 947 | 949 | } |
| r7397 | r7398 | |
| 1003 | 1005 | |
| 1004 | 1006 | SetupImageTypes(config, imagetypes, ARRAY_LENGTH(imagetypes), TRUE, dev); |
| 1005 | 1007 | bResult = CommonFileImageDialog(s, GetSaveFileName, pszFilename, config, imagetypes); |
| 1008 | |
| 1009 | /* TODO: free() calls? */ |
| 1006 | 1010 | |
| 1007 | 1011 | return bResult; |
| 1008 | 1012 | } |
| r7397 | r7398 | |
| 1114 | 1118 | { |
| 1115 | 1119 | LPCSTR pszFullName; |
| 1116 | 1120 | LPCSTR pszName; |
| 1121 | const char* tmp; |
| 1117 | 1122 | LPSTR s; |
| 1118 | 1123 | int drvindex; |
| 1119 | 1124 | HWND hwndList; |
| r7397 | r7398 | |
| 1126 | 1131 | |
| 1127 | 1132 | // Get the fullname and partialname for this file |
| 1128 | 1133 | 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; |
| 1131 | 1136 | |
| 1132 | 1137 | // Do the dirty work |
| 1133 | 1138 | MessSpecifyImage(drvindex, NULL, pszFullName); |