frame counter turns red on MOVIEMODE_FINISHED

This commit is contained in:
adelikat 2010-05-19 03:46:52 +00:00
parent 83fb3e9ffa
commit 642ef6e568
2 changed files with 8 additions and 4 deletions

View File

@ -621,7 +621,8 @@ void SetAutoFireOffset(int offset)
void AutoFire(void)
{
static int counter = 0;
if (justLagged == false) counter = (counter + 1) % (8*7*5*3);
if (justLagged == false)
counter = (counter + 1) % (8*7*5*3);
//If recording a movie, use the frame # for the autofire so the offset
//doesn't get screwed up when loading.
if(FCEUMOV_Mode(MOVIEMODE_RECORD | MOVIEMODE_PLAY))

View File

@ -1172,18 +1172,21 @@ void FCEU_DrawMovies(uint8 *XBuf)
if(frame_display && movieMode != MOVIEMODE_TASEDIT)
{
char counterbuf[32] = {0};
int color = 0x20;
if(movieMode == MOVIEMODE_PLAY)
sprintf(counterbuf,"%d/%d",currFrameCounter,currMovieData.records.size());
else if(movieMode == MOVIEMODE_RECORD)
sprintf(counterbuf,"%d",currFrameCounter/*currMovieData.records.size()*/);
sprintf(counterbuf,"%d",currFrameCounter);
else if (movieMode == MOVIEMODE_FINISHED)
{
sprintf(counterbuf,"%d/%d (finished)",currFrameCounter,currMovieData.records.size());
color = 0x17; //Show red to get attention
}
else
sprintf(counterbuf,"%d (no movie)",currFrameCounter);
if(counterbuf[0])
DrawTextTrans(ClipSidesOffset+XBuf+FCEU_TextScanlineOffsetFromBottom(30)+1, 256, (uint8*)counterbuf, 0x20+0x80);
DrawTextTrans(ClipSidesOffset+XBuf+FCEU_TextScanlineOffsetFromBottom(30)+1, 256, (uint8*)counterbuf, color+0x80);
}
}