From f49d139c6bb975a68478eedd9763028443f47d25 Mon Sep 17 00:00:00 2001 From: Aki Date: Wed, 16 Feb 2022 23:59:33 +0100 Subject: Changed video related static game method to instance methods --- Stars45/VidDlg.cpp | 51 ++++++++++++++++++++++++++------------------------- 1 file changed, 26 insertions(+), 25 deletions(-) (limited to 'Stars45/VidDlg.cpp') 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()) { -- cgit v1.1