diff options
author | Aki <please@ignore.pl> | 2022-04-03 20:14:44 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2022-04-03 20:14:44 +0200 |
commit | 8fe1e0179fc4f08c9288c50ba5505fe040dea042 (patch) | |
tree | 6bf39a3a842694e29cf7e661c29ba59a210e3b2f /StarsEx/Game.cpp | |
parent | cd57c84c5fe34c2ac548d6d119a9828a303923ef (diff) | |
download | starshatter-8fe1e0179fc4f08c9288c50ba5505fe040dea042.zip starshatter-8fe1e0179fc4f08c9288c50ba5505fe040dea042.tar.gz starshatter-8fe1e0179fc4f08c9288c50ba5505fe040dea042.tar.bz2 |
Moved parts of activate and pause methods to GameWinDX9
Diffstat (limited to 'StarsEx/Game.cpp')
-rw-r--r-- | StarsEx/Game.cpp | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/StarsEx/Game.cpp b/StarsEx/Game.cpp index b7a4fb1..56cb115 100644 --- a/StarsEx/Game.cpp +++ b/StarsEx/Game.cpp @@ -130,9 +130,6 @@ void Game::Activate(bool f) { active = f; - - if (active && video) - video->InvalidateCache(); } // +--------------------------------------------------------------------+ @@ -140,16 +137,7 @@ Game::Activate(bool f) void Game::Pause(bool f) { - if (f) { - if (soundcard) - soundcard->Pause(); - paused = true; - } - else { - if (soundcard) - soundcard->Resume(); - paused = false; - } + paused = f; } // +--------------------------------------------------------------------+ |