src/mess/devices/cassette.c
| r4882 | r4883 | |
| 327 | 327 | double position, length; |
| 328 | 328 | cassette_state uistate; |
| 329 | 329 | const device_config *device; |
| 330 | UINT8 shapes[8] = { 0x2d, 0x5c, 0x7c, 0x2f, 0x2d, 0x20, 0x20, 0x20 }; |
| 330 | 331 | |
| 331 | 332 | /* abort if we should not be showing the image */ |
| 332 | 333 | if (!image_exists(image)) |
| r4882 | r4883 | |
| 354 | 355 | y *= ui_get_line_height(); |
| 355 | 356 | /* choose which frame of the animation we are at */ |
| 356 | 357 | n = ((int) position / ANIMATION_FPS) % ANIMATION_FRAMES; |
| 357 | | |
| 358 | #if 0 |
| 359 | /* THE ANIMATION HASN'T WORKED SINCE 0.114 - LEFT HERE FOR REFERENCE */ |
| 360 | /* NEVER SEEN THE PLAY / RECORD ICONS */ |
| 358 | 361 | /* character pairs 2-3, 4-5, 6-7, 8-9 form little tape cassette images */ |
| 359 | 362 | snprintf(buf, sizeof(buf) / sizeof(buf[0]), "%c%c %c %02d:%02d (%04d) [%02d:%02d (%04d)]", |
| 360 | 363 | n * 2 + 2, /* cassette icon left */ |
| 361 | 364 | n * 2 + 3, /* cassette icon right */ |
| 362 | 365 | (uistate == CASSETTE_PLAY) ? 16 : 14, /* play or record icon */ |
| 366 | #endif |
| 367 | /* Since you can have anything in a BDF file, we will use crude ascii characters instead */ |
| 368 | snprintf(buf, sizeof(buf) / sizeof(buf[0]), "%c%c %c %02d:%02d (%04d) [%02d:%02d (%04d)]", |
| 369 | shapes[n], /* cassette icon left */ |
| 370 | shapes[n|4], /* cassette icon right */ |
| 371 | (uistate == CASSETTE_PLAY) ? 0x50 : 0x52, /* play (P) or record (R) */ |
| 363 | 372 | ((int) position / 60), |
| 364 | 373 | ((int) position % 60), |
| 365 | 374 | (int) position, |