Oops, fixed the bug I introduced. Frame display toggle now works.

This commit is contained in:
adelikat 2008-11-14 13:35:01 +00:00
parent 08ba562b06
commit 8c174ae9b2
1 changed files with 20 additions and 18 deletions

View File

@ -934,25 +934,27 @@ void FCEUMOV_AddCommand(int cmd)
void FCEU_DrawMovies(uint8 *XBuf) void FCEU_DrawMovies(uint8 *XBuf)
{ {
if(frame_display if(frame_display)
&& movieMode != MOVIEMODE_INACTIVE)
{ {
if (movieMode != MOVIEMODE_INACTIVE)
char counterbuf[32] = {0}; {
if(movieMode == MOVIEMODE_PLAY)
sprintf(counterbuf,"%d/%d",currFrameCounter,currMovieData.records.size()); char counterbuf[32] = {0};
else if(movieMode == MOVIEMODE_RECORD) if(movieMode == MOVIEMODE_PLAY)
sprintf(counterbuf,"%d",currMovieData.records.size()); sprintf(counterbuf,"%d/%d",currFrameCounter,currMovieData.records.size());
else if(movieMode == MOVIEMODE_RECORD)
if(counterbuf[0]) sprintf(counterbuf,"%d",currMovieData.records.size());
DrawTextTrans(XBuf+FCEU_TextScanlineOffsetFromBottom(24), 256, (uint8*)counterbuf, 0x20+0x80);
} if(counterbuf[0])
else DrawTextTrans(XBuf+FCEU_TextScanlineOffsetFromBottom(24), 256, (uint8*)counterbuf, 0x20+0x80);
{ }
char counterbuf[32] = {0}; else
sprintf(counterbuf,"%d (no movie)",currFrameCounter); {
if(counterbuf[0]) char counterbuf[32] = {0};
DrawTextTrans(XBuf+FCEU_TextScanlineOffsetFromBottom(24), 256, (uint8*)counterbuf, 0x20+0x80); sprintf(counterbuf,"%d (no movie)",currFrameCounter);
if(counterbuf[0])
DrawTextTrans(XBuf+FCEU_TextScanlineOffsetFromBottom(24), 256, (uint8*)counterbuf, 0x20+0x80);
}
} }
} }