diff options
author | deva <deva> | 2005-07-25 16:18:34 +0000 |
---|---|---|
committer | deva <deva> | 2005-07-25 16:18:34 +0000 |
commit | eac2e19c2fea1c704cdeabcaf5e19f774d3f820b (patch) | |
tree | 8808ab4de66d973f73a16cdf42e2155d3ef12c46 /src/player.cc | |
parent | 103c0face1e5dcc089b21715dfc20f4812b36072 (diff) |
*** empty log message ***
Diffstat (limited to 'src/player.cc')
-rw-r--r-- | src/player.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/player.cc b/src/player.cc index ad8cdc4..8556ce6 100644 --- a/src/player.cc +++ b/src/player.cc @@ -39,6 +39,9 @@ /* * $Log$ + * Revision 1.30 2005/07/25 16:18:34 deva + * *** empty log message *** + * * Revision 1.29 2005/07/25 16:09:47 deva * *** empty log message *** * @@ -102,6 +105,7 @@ Player::Player(Info *ginfo, initSDL(); doresize = false; + dopause = false; } Player::~Player() @@ -191,8 +195,11 @@ void Player::player() height = new_height; reinitSDL(); doresize = false; + dopause = false; } + if(dopause) continue; + if(!SDL_WaitEvent(&event)) break; // FIXME: Gracefully exit... switch(event.type) { @@ -283,4 +290,9 @@ void Player::resize(int w, int h) doresize = true; } +void Player::pause() +{ + dopause = true; +} + #endif /* USE_GUI */ |