diff options
author | Aki <please@ignore.pl> | 2022-04-10 00:30:31 +0200 |
---|---|---|
committer | Aki <please@ignore.pl> | 2022-04-10 00:30:31 +0200 |
commit | 06683d2e60da5144e5483c3d0cf88aa28dab1c8a (patch) | |
tree | 646b470948b93a1dd18ba759f071ff454211feb1 /StarsEx/GameWinDX9.cpp | |
parent | 595140fc96fc48ac6934615d37bd2b4a180d716d (diff) | |
download | starshatter-06683d2e60da5144e5483c3d0cf88aa28dab1c8a.zip starshatter-06683d2e60da5144e5483c3d0cf88aa28dab1c8a.tar.gz starshatter-06683d2e60da5144e5483c3d0cf88aa28dab1c8a.tar.bz2 |
Requested texture size is now managed by Video and Video Settings
Diffstat (limited to 'StarsEx/GameWinDX9.cpp')
-rw-r--r-- | StarsEx/GameWinDX9.cpp | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/StarsEx/GameWinDX9.cpp b/StarsEx/GameWinDX9.cpp index 9571122..d49dfdb 100644 --- a/StarsEx/GameWinDX9.cpp +++ b/StarsEx/GameWinDX9.cpp @@ -35,7 +35,6 @@ GameWinDX9::GetInstance() GameWinDX9::GameWinDX9() : - max_tex_size {2048}, screen_color {Color::Black}, hInst {nullptr}, hwnd {nullptr}, @@ -641,33 +640,6 @@ GameWinDX9::ShowStats() } -int -GameWinDX9::MaxTexSize() const -{ - if (video) { - int max_from_video = video->MaxTexSize(); - if (max_from_video < max_tex_size) - return max_from_video; - return max_tex_size; - } - else if (Video* video = Video::GetInstance()) { - return video->MaxTexSize(); - } - return 256; -} - - -int -GameWinDX9::MaxTexAspect() const -{ - if (video) - return video->MaxTexAspect(); - else if (Video* video = Video::GetInstance()) - return video->MaxTexAspect(); - return 1; -} - - Color GameWinDX9::GetScreenColor() const { @@ -708,14 +680,6 @@ GameWinDX9::GetHWND() void -GameWinDX9::SetMaxTexSize(int n) -{ - if (n >= 64 && n <= 4096) - max_tex_size = n; -} - - -void GameWinDX9::SetScreenColor(Color c) { screen_color = c; |