1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-12-01 23:12:49 +02:00

- compile fixes for linux player

This commit is contained in:
Ivan Savenko
2011-08-08 14:20:22 +00:00
parent 05f166f751
commit c63df4f07a
4 changed files with 69 additions and 59 deletions

View File

@@ -214,9 +214,10 @@ void CBIKHandler::show( int x, int y, SDL_Surface *dst, bool update )
SDL_UpdateRect(dst, x, y, w, h);
}
void CBIKHandler::nextFrame()
bool CBIKHandler::nextFrame()
{
binkNextFrame(hBink);
return true;
}
void CBIKHandler::close()
@@ -269,9 +270,10 @@ void CBIKHandler::freeBuffer()
bufferSize = 0;
}
void CSmackPlayer::nextFrame()
bool CSmackPlayer::nextFrame()
{
ptrSmackNextFrame(data);
return true;
}
bool CSmackPlayer::wait()
@@ -670,6 +672,11 @@ CVideoPlayer::CVideoPlayer()
vidh.add_file(std::string(DATA_DIR "/Data/H3ab_ahd.vid"));
}
bool CVideoPlayer::open(std::string fname)
{
return open(fname, true, false);
}
// loop = to loop through the video
// useOverlay = directly write to the screen.
bool CVideoPlayer::open(std::string fname, bool loop, bool useOverlay)