MCPcopy Create free account
hub / github.com/TASEmulators/fceux / FCEU_DrawPauseCountDown

Function FCEU_DrawPauseCountDown

src/video.cpp:780–808  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

778bool showPauseCountDown = true;
779
780static 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}

Callers 1

FCEU_PutImageFunction · 0.85

Calls 2

DrawTextTransFunction · 0.85

Tested by

no test coverage detected