mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2025-12-12 17:58:53 +01:00
Fixed bug where <video> continued playing upon launch. Video needs to be turned off when a game is launched, and restarted when the game is complete.
This commit is contained in:
parent
596e783eb1
commit
6b14ee64cd
@ -39,6 +39,15 @@ Video::Video(std::string file, std::string altFile, int numLoops, Page &p, float
|
||||
allocateGraphicsMemory( );
|
||||
}
|
||||
|
||||
void Video::launchEnter()
|
||||
{
|
||||
freeGraphicsMemory();
|
||||
}
|
||||
|
||||
void Video::launchExit()
|
||||
{
|
||||
allocateGraphicsMemory();
|
||||
}
|
||||
|
||||
Video::~Video( )
|
||||
{
|
||||
|
||||
@ -28,6 +28,8 @@ public:
|
||||
void update(float dt);
|
||||
void freeGraphicsMemory( );
|
||||
void allocateGraphicsMemory( );
|
||||
void launchEnter();
|
||||
void launchExit();
|
||||
void draw( );
|
||||
virtual bool isPlaying( );
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user