diff options
author | Aki <please@ignore.pl> | 2022-03-14 19:36:33 +0100 |
---|---|---|
committer | Aki <please@ignore.pl> | 2022-03-14 19:36:33 +0100 |
commit | 2e5d0eb1eecc52b20d1e9f7a3ce0317b851442c4 (patch) | |
tree | a1e7873c9086e5d1f4be8092d775e6127f5c388c /Stars45/VidDlg.cpp | |
parent | 92f7c58068c6a7bfe0b32af5c1ace6bdde2f3951 (diff) | |
download | starshatter-2e5d0eb1eecc52b20d1e9f7a3ce0317b851442c4.zip starshatter-2e5d0eb1eecc52b20d1e9f7a3ce0317b851442c4.tar.gz starshatter-2e5d0eb1eecc52b20d1e9f7a3ce0317b851442c4.tar.bz2 |
Moved max texture size to GameWinDX9
Diffstat (limited to 'Stars45/VidDlg.cpp')
-rw-r--r-- | Stars45/VidDlg.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Stars45/VidDlg.cpp b/Stars45/VidDlg.cpp index 2a68f86..d205541 100644 --- a/Stars45/VidDlg.cpp +++ b/Stars45/VidDlg.cpp @@ -12,6 +12,7 @@ */ #include "Game.h" +#include "GameWinDX9.h" #include "MemDebug.h" #include "VidDlg.h" #include "BaseScreen.h" @@ -141,7 +142,7 @@ VidDlg::Show() selected_render = 9; selected_card = 0; - int n = stars->MaxTexSize(); + int n = GameWinDX9::GetInstance()->MaxTexSize(); for (int i = 0; i < 7; i++) { if (n <= pow(2.0f, i+6)) { @@ -392,7 +393,7 @@ VidDlg::Apply() d = 32; } - if (Game::GetInstance()->MaxTexSize() != t) + if (GameWinDX9::GetInstance()->MaxTexSize() != t) video_change = true; } |