Rev 511 | Rev 537 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 511 | Rev 512 | ||
---|---|---|---|
Line 252... | Line 252... | ||
252 | } |
252 | } |
253 | } |
253 | } |
254 | 254 | ||
255 | /* one-time initialisation of dialog box */ |
255 | /* one-time initialisation of dialog box */ |
256 | 256 | ||
257 | void strcpy_win_replace_ampersand(char *dst, char *src) { |
- | |
258 | size_t i; |
- | |
259 | for (i = 0; i < strlen(src); i++) { |
- | |
260 | #ifdef WIN_ENV |
- | |
261 | // & needs to be replaced to && in: |
- | |
262 | // - Labels (SETCTLTEXT) |
- | |
263 | // - Menu items (i.e. PIPL) |
- | |
264 | // It is not required in: |
- | |
265 | // - Filedialog FileName |
- | |
266 | // - MessageBox title or content |
- | |
267 | // - Window titles |
- | |
268 | // - Input boxes, e.g. import+export of an existing filter |
- | |
269 | if (src[i] == '&') { |
- | |
270 | *dst++ = src[i]; |
- | |
271 | } |
- | |
272 | #endif |
- | |
273 | *dst++ = src[i]; |
- | |
274 | } |
- | |
275 | *dst++ = '\0'; |
- | |
276 | } |
- | |
277 | - | ||
278 | void maindlginit(DIALOGREF dp){ |
257 | void maindlginit(DIALOGREF dp){ |
279 | char s[0x100]; |
258 | char s[0x100]; |
280 | int i; |
259 | int i; |
281 | const char *channelsuffixes[] = { |
260 | const char *channelsuffixes[] = { |
282 | "", "KA", "I", "RGBA", |
261 | "", "KA", "I", "RGBA", |