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

Function FCEU_DrawRecordingStatus

src/drawing.cpp:333–352  ·  view source on GitHub ↗

this draws the recording icon (play/pause/record)

Source from the content-addressed store, hash-verified

331
332/// this draws the recording icon (play/pause/record)
333void FCEU_DrawRecordingStatus(uint8* XBuf)
334{
335 if(FCEUD_ShowStatusIcon())
336 {
337 bool hasPlayRecIcon = false;
338 if(FCEUMOV_Mode(MOVIEMODE_RECORD))
339 {
340 drawstatus(XBuf-ClipSidesOffset,2,28,0);
341 hasPlayRecIcon = true;
342 }
343 else if(FCEUMOV_Mode(MOVIEMODE_PLAY|MOVIEMODE_FINISHED))
344 {
345 drawstatus(XBuf-ClipSidesOffset,1,28,0);
346 hasPlayRecIcon = true;
347 }
348
349 if( EmulationPaused & (EMULATIONPAUSED_PAUSED | EMULATIONPAUSED_TIMER) )
350 drawstatus(XBuf-ClipSidesOffset,3,28,hasPlayRecIcon?-16:0);
351 }
352}
353
354
355void FCEU_DrawNumberRow(uint8 *XBuf, int *nstatus, int cur)

Callers 1

FCEU_PutImageFunction · 0.85

Calls 3

FCEUMOV_ModeFunction · 0.85
drawstatusFunction · 0.85
FCEUD_ShowStatusIconFunction · 0.50

Tested by

no test coverage detected