summaryrefslogtreecommitdiffhomepage
path: root/Stars45/Game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Stars45/Game.cpp')
-rw-r--r--Stars45/Game.cpp37
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)
{