summaryrefslogtreecommitdiffhomepage
path: root/StarsEx/GameWinDX9.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'StarsEx/GameWinDX9.cpp')
-rw-r--r--StarsEx/GameWinDX9.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/StarsEx/GameWinDX9.cpp b/StarsEx/GameWinDX9.cpp
index b4f7979..3020eea 100644
--- a/StarsEx/GameWinDX9.cpp
+++ b/StarsEx/GameWinDX9.cpp
@@ -580,6 +580,20 @@ GameWinDX9::Run()
void
+GameWinDX9::UpdateScreen()
+{
+ if (!screen || !video) return;
+
+ if (screen->Refresh()) {
+ video->Present();
+ }
+ else {
+ Panic::Panic("Screen refresh failed.");
+ }
+}
+
+
+void
GameWinDX9::Activate(bool f)
{
Game::Activate(f);