mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2025-12-13 10:18: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( );
|
allocateGraphicsMemory( );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Video::launchEnter()
|
||||||
|
{
|
||||||
|
freeGraphicsMemory();
|
||||||
|
}
|
||||||
|
|
||||||
|
void Video::launchExit()
|
||||||
|
{
|
||||||
|
allocateGraphicsMemory();
|
||||||
|
}
|
||||||
|
|
||||||
Video::~Video( )
|
Video::~Video( )
|
||||||
{
|
{
|
||||||
|
|||||||
@ -28,6 +28,8 @@ public:
|
|||||||
void update(float dt);
|
void update(float dt);
|
||||||
void freeGraphicsMemory( );
|
void freeGraphicsMemory( );
|
||||||
void allocateGraphicsMemory( );
|
void allocateGraphicsMemory( );
|
||||||
|
void launchEnter();
|
||||||
|
void launchExit();
|
||||||
void draw( );
|
void draw( );
|
||||||
virtual bool isPlaying( );
|
virtual bool isPlaying( );
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user