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/Game.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/Game.cpp')
-rw-r--r-- | Stars45/Game.cpp | 37 |
1 files changed, 1 insertions, 36 deletions
diff --git a/Stars45/Game.cpp b/Stars45/Game.cpp index 3d6dcb6..ff14989 100644 --- a/Stars45/Game.cpp +++ b/Stars45/Game.cpp @@ -37,7 +37,7 @@ const double MAX_FRAME_TIME_NORMAL = 1.0 / 5.0; Game::Game() : world(0), video_factory(0), video(0), video_settings(0), soundcard(0), - gamma(128), max_tex_size(2048), screen(0), totaltime(0), + gamma(128), screen(0), totaltime(0), hInst(0), hwnd(0), frame_rate(0), frame_count(0), frame_count0(0), frame_time(0), frame_time0(0), status(Game::OK), exit_code(0), window_style(0) @@ -132,41 +132,6 @@ Game::SetGammaLevel(int g) } } -int -Game::MaxTexSize() -{ - if (game && game->video) { - int max_vid_size = game->video->MaxTexSize(); - return max_vid_size < game->max_tex_size ? - max_vid_size : game->max_tex_size; - } - else if (Video::GetInstance()) { - return Video::GetInstance()->MaxTexSize(); - } - - return 256; -} - -int -Game::MaxTexAspect() -{ - if (game && game->video) { - return game->video->MaxTexAspect(); - } - else if (Video::GetInstance()) { - return Video::GetInstance()->MaxTexAspect(); - } - - return 1; -} - -void -Game::SetMaxTexSize(int n) -{ - if (game && n >= 64 && n <= 4096) - game->max_tex_size = n; -} - bool Game::DisplayModeSupported(int w, int h, int bpp) { |