summaryrefslogtreecommitdiffhomepage
path: root/Stars45/VidDlg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Stars45/VidDlg.cpp')
-rw-r--r--Stars45/VidDlg.cpp51
1 files changed, 26 insertions, 25 deletions
diff --git a/Stars45/VidDlg.cpp b/Stars45/VidDlg.cpp
index 88f5e56..95aa8e1 100644
--- a/Stars45/VidDlg.cpp
+++ b/Stars45/VidDlg.cpp
@@ -11,6 +11,7 @@
Main Menu Dialog Active Window class
*/
+#include "Game.h"
#include "MemDebug.h"
#include "VidDlg.h"
#include "BaseScreen.h"
@@ -465,43 +466,43 @@ VidDlg::BuildModeList()
mode->ClearItems();
selected_mode = 0;
- if (Game::DisplayModeSupported( 800, 600, 16)) mode->AddItem("800 x 600 x 16");
- if (Game::DisplayModeSupported( 800, 600, 32)) mode->AddItem("800 x 600 x 32");
+ if (stars->DisplayModeSupported( 800, 600, 16)) mode->AddItem("800 x 600 x 16");
+ if (stars->DisplayModeSupported( 800, 600, 32)) mode->AddItem("800 x 600 x 32");
- if (Game::DisplayModeSupported(1024, 768, 16)) mode->AddItem("1024 x 768 x 16");
- if (Game::DisplayModeSupported(1024, 768, 32)) mode->AddItem("1024 x 768 x 32");
+ if (stars->DisplayModeSupported(1024, 768, 16)) mode->AddItem("1024 x 768 x 16");
+ if (stars->DisplayModeSupported(1024, 768, 32)) mode->AddItem("1024 x 768 x 32");
- if (Game::DisplayModeSupported(1152, 864, 16)) mode->AddItem("1152 x 864 x 16");
- if (Game::DisplayModeSupported(1152, 864, 32)) mode->AddItem("1152 x 864 x 32");
+ if (stars->DisplayModeSupported(1152, 864, 16)) mode->AddItem("1152 x 864 x 16");
+ if (stars->DisplayModeSupported(1152, 864, 32)) mode->AddItem("1152 x 864 x 32");
- if (Game::DisplayModeSupported(1280, 800, 16)) mode->AddItem("1280 x 800 x 16");
- if (Game::DisplayModeSupported(1280, 800, 32)) mode->AddItem("1280 x 800 x 32");
+ if (stars->DisplayModeSupported(1280, 800, 16)) mode->AddItem("1280 x 800 x 16");
+ if (stars->DisplayModeSupported(1280, 800, 32)) mode->AddItem("1280 x 800 x 32");
- if (Game::DisplayModeSupported(1280, 960, 16)) mode->AddItem("1280 x 960 x 16");
- if (Game::DisplayModeSupported(1280, 960, 32)) mode->AddItem("1280 x 960 x 32");
+ if (stars->DisplayModeSupported(1280, 960, 16)) mode->AddItem("1280 x 960 x 16");
+ if (stars->DisplayModeSupported(1280, 960, 32)) mode->AddItem("1280 x 960 x 32");
- if (Game::DisplayModeSupported(1280,1024, 16)) mode->AddItem("1280 x 1024 x 16");
- if (Game::DisplayModeSupported(1280,1024, 32)) mode->AddItem("1280 x 1024 x 32");
+ if (stars->DisplayModeSupported(1280,1024, 16)) mode->AddItem("1280 x 1024 x 16");
+ if (stars->DisplayModeSupported(1280,1024, 32)) mode->AddItem("1280 x 1024 x 32");
- if (Game::DisplayModeSupported(1366, 768, 16)) mode->AddItem("1366 x 768 x 16");
- if (Game::DisplayModeSupported(1366, 768, 32)) mode->AddItem("1366 x 768 x 32");
+ if (stars->DisplayModeSupported(1366, 768, 16)) mode->AddItem("1366 x 768 x 16");
+ if (stars->DisplayModeSupported(1366, 768, 32)) mode->AddItem("1366 x 768 x 32");
- if (Game::DisplayModeSupported(1440, 900, 16)) mode->AddItem("1440 x 900 x 16");
- if (Game::DisplayModeSupported(1440, 900, 32)) mode->AddItem("1440 x 900 x 32");
+ if (stars->DisplayModeSupported(1440, 900, 16)) mode->AddItem("1440 x 900 x 16");
+ if (stars->DisplayModeSupported(1440, 900, 32)) mode->AddItem("1440 x 900 x 32");
- if (Game::DisplayModeSupported(1600, 900, 16)) mode->AddItem("1600 x 900 x 16");
- if (Game::DisplayModeSupported(1600, 900, 32)) mode->AddItem("1600 x 900 x 32");
+ if (stars->DisplayModeSupported(1600, 900, 16)) mode->AddItem("1600 x 900 x 16");
+ if (stars->DisplayModeSupported(1600, 900, 32)) mode->AddItem("1600 x 900 x 32");
- if (Game::DisplayModeSupported(1600,1200, 16)) mode->AddItem("1600 x 1200 x 16");
- if (Game::DisplayModeSupported(1600,1200, 32)) mode->AddItem("1600 x 1200 x 32");
+ if (stars->DisplayModeSupported(1600,1200, 16)) mode->AddItem("1600 x 1200 x 16");
+ if (stars->DisplayModeSupported(1600,1200, 32)) mode->AddItem("1600 x 1200 x 32");
- if (Game::DisplayModeSupported(1680,1050, 16)) mode->AddItem("1680 x 1050 x 16");
- if (Game::DisplayModeSupported(1680,1050, 32)) mode->AddItem("1680 x 1050 x 32");
+ if (stars->DisplayModeSupported(1680,1050, 16)) mode->AddItem("1680 x 1050 x 16");
+ if (stars->DisplayModeSupported(1680,1050, 32)) mode->AddItem("1680 x 1050 x 32");
- if (Game::DisplayModeSupported(1920,1080, 16)) mode->AddItem("1920 x 1080 x 16");
- if (Game::DisplayModeSupported(1920,1080, 32)) mode->AddItem("1920 x 1080 x 32");
+ if (stars->DisplayModeSupported(1920,1080, 16)) mode->AddItem("1920 x 1080 x 16");
+ if (stars->DisplayModeSupported(1920,1080, 32)) mode->AddItem("1920 x 1080 x 32");
- Video* video = Game::GetVideo();
+ Video* video = stars->GetVideo();
if (stars && video) {
switch (video->Width()) {