From a83d89da0737f11b6758b575c38bd52db441ccf1 Mon Sep 17 00:00:00 2001 From: Mathieu Schroeter Date: Sun, 5 Feb 2017 18:25:39 +0100 Subject: [PATCH] Remove unused stuff --- movie.cpp | 11 +++-------- movie.h | 2 +- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/movie.cpp b/movie.cpp index cd294ca..11c8629 100644 --- a/movie.cpp +++ b/movie.cpp @@ -137,18 +137,13 @@ bool CMovie::fileOpenMovie(RECT rect, char *pFilename) } // Play/pause the movie depending on the state -// of the flag. | -// This function sets the flag appropriately when done| -void CMovie::playMovie(int nDirection) +void CMovie::playMovie() { m_fPlaying = !m_fPlaying; // swap the play flag - if( !nDirection ) - m_fPlaying = false; // wDirection == nullptr means PAUSE - // play/pause the AVI movie - if ( m_fPlaying ) + if (m_fPlaying) { SDL_RenderSetLogicalSize (g_renderer, pinfo->video.width, pinfo->video.height); Kit_PlayerPlay (m_player); @@ -235,7 +230,7 @@ bool CMovie::Play(RECT rect, char *pFilename) { if ( !m_bEnable ) return false; if ( !fileOpenMovie(rect, pFilename) ) return false; - playMovie(IDM_PLAY); + playMovie(); CEvent::PushUserEvent (WM_MOVIE_PLAY); return true; diff --git a/movie.h b/movie.h index fae366c..e89cd31 100644 --- a/movie.h +++ b/movie.h @@ -26,7 +26,7 @@ public: bool Render (); protected: - void playMovie(int nDirection); + void playMovie(); bool fileOpenMovie(RECT rect, char *pFilename); void fileCloseMovie(); void termAVI();