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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user