mirror of
https://github.com/blupi-games/planetblupi
synced 2024-12-30 10:15:36 +01:00
Remove unused stuff
This commit is contained in:
parent
c7e79eb8f4
commit
a83d89da07
11
movie.cpp
11
movie.cpp
@ -137,18 +137,13 @@ bool CMovie::fileOpenMovie(RECT rect, char *pFilename)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Play/pause the movie depending on the state
|
// Play/pause the movie depending on the state
|
||||||
// of the <m_fPlaying> flag. |
|
|
||||||
// This function sets the <m_fPlaying> flag appropriately when done|
|
|
||||||
|
|
||||||
void CMovie::playMovie(int nDirection)
|
void CMovie::playMovie()
|
||||||
{
|
{
|
||||||
m_fPlaying = !m_fPlaying; // swap the play flag
|
m_fPlaying = !m_fPlaying; // swap the play flag
|
||||||
|
|
||||||
if( !nDirection )
|
|
||||||
m_fPlaying = false; // wDirection == nullptr means PAUSE
|
|
||||||
|
|
||||||
// play/pause the AVI movie
|
// play/pause the AVI movie
|
||||||
if ( m_fPlaying )
|
if (m_fPlaying)
|
||||||
{
|
{
|
||||||
SDL_RenderSetLogicalSize (g_renderer, pinfo->video.width, pinfo->video.height);
|
SDL_RenderSetLogicalSize (g_renderer, pinfo->video.width, pinfo->video.height);
|
||||||
Kit_PlayerPlay (m_player);
|
Kit_PlayerPlay (m_player);
|
||||||
@ -235,7 +230,7 @@ bool CMovie::Play(RECT rect, char *pFilename)
|
|||||||
{
|
{
|
||||||
if ( !m_bEnable ) return false;
|
if ( !m_bEnable ) return false;
|
||||||
if ( !fileOpenMovie(rect, pFilename) ) return false;
|
if ( !fileOpenMovie(rect, pFilename) ) return false;
|
||||||
playMovie(IDM_PLAY);
|
playMovie();
|
||||||
CEvent::PushUserEvent (WM_MOVIE_PLAY);
|
CEvent::PushUserEvent (WM_MOVIE_PLAY);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
2
movie.h
2
movie.h
@ -26,7 +26,7 @@ public:
|
|||||||
bool Render ();
|
bool Render ();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void playMovie(int nDirection);
|
void playMovie();
|
||||||
bool fileOpenMovie(RECT rect, char *pFilename);
|
bool fileOpenMovie(RECT rect, char *pFilename);
|
||||||
void fileCloseMovie();
|
void fileCloseMovie();
|
||||||
void termAVI();
|
void termAVI();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user