From 642ef6e56808075cae5ba87af31b382a6f3cad36 Mon Sep 17 00:00:00 2001 From: adelikat Date: Wed, 19 May 2010 03:46:52 +0000 Subject: [PATCH] frame counter turns red on MOVIEMODE_FINISHED --- src/fceu.cpp | 3 ++- src/movie.cpp | 9 ++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/fceu.cpp b/src/fceu.cpp index f5baf80b..4a117f02 100644 --- a/src/fceu.cpp +++ b/src/fceu.cpp @@ -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)) diff --git a/src/movie.cpp b/src/movie.cpp index bb0e72a4..e0e4572c 100644 --- a/src/movie.cpp +++ b/src/movie.cpp @@ -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); } }