summaryrefslogtreecommitdiffhomepage
path: root/StarsEx/Game.cpp
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-04-03 20:14:44 +0200
committerAki <please@ignore.pl>2022-04-03 20:14:44 +0200
commit8fe1e0179fc4f08c9288c50ba5505fe040dea042 (patch)
tree6bf39a3a842694e29cf7e661c29ba59a210e3b2f /StarsEx/Game.cpp
parentcd57c84c5fe34c2ac548d6d119a9828a303923ef (diff)
downloadstarshatter-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.cpp14
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;
}
// +--------------------------------------------------------------------+