From 2e5d0eb1eecc52b20d1e9f7a3ce0317b851442c4 Mon Sep 17 00:00:00 2001 From: Aki Date: Mon, 14 Mar 2022 19:36:33 +0100 Subject: Moved max texture size to GameWinDX9 --- Stars45/VidDlg.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Stars45/VidDlg.cpp') 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; } -- cgit v1.1