| 778 | bool showPauseCountDown = true; |
| 779 | |
| 780 | static void FCEU_DrawPauseCountDown(uint8 *XBuf) |
| 781 | { |
| 782 | if (EmulationPaused & EMULATIONPAUSED_TIMER) |
| 783 | { |
| 784 | int pauseFramesLeft = FCEUI_PauseFramesRemaining(); |
| 785 | |
| 786 | if (showPauseCountDown && (pauseFramesLeft > 0) ) |
| 787 | { |
| 788 | char text[32]; |
| 789 | int framesPerSec; |
| 790 | |
| 791 | if (PAL || dendy) |
| 792 | { |
| 793 | framesPerSec = 50; |
| 794 | } |
| 795 | else |
| 796 | { |
| 797 | framesPerSec = 60; |
| 798 | } |
| 799 | |
| 800 | sprintf(text, "Unpausing in %d...", (pauseFramesLeft / framesPerSec) + 1); |
| 801 | |
| 802 | if (text[0]) |
| 803 | { |
| 804 | DrawTextTrans(XBuf + ClipSidesOffset + (FSettings.FirstSLine) * 256, 256, (uint8*)text, 0xA0); |
| 805 | } |
| 806 | } |
| 807 | } |
| 808 | } |
no test coverage detected