summaryrefslogtreecommitdiffhomepage
path: root/Stars45/Game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Stars45/Game.cpp')
-rw-r--r--Stars45/Game.cpp25
1 files changed, 1 insertions, 24 deletions
diff --git a/Stars45/Game.cpp b/Stars45/Game.cpp
index ff14989..24d6871 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), screen(0), totaltime(0),
+ 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)
@@ -112,26 +112,6 @@ bool Game::IsWindowed()
// +--------------------------------------------------------------------+
-int
-Game::GammaLevel()
-{
- if (game)
- return game->gamma;
-
- return 0;
-}
-
-void
-Game::SetGammaLevel(int g)
-{
- if (game) {
- game->gamma = g;
-
- if (game->video)
- game->video->SetGammaLevel(g);
- }
-}
-
bool
Game::DisplayModeSupported(int w, int h, int bpp)
{
@@ -251,7 +231,6 @@ Game::ResetVideo()
Print(" WARNING: could not set video background color to Black\n");
screen->ClearAllFrames(true);
- video->SetGammaLevel(gamma);
Print(" Re-established requested video parameters.\n");
@@ -448,8 +427,6 @@ Game::InitGame()
Print(" WARNING: could not set video background color to Black\n");
screen->ClearAllFrames(true);
- video->SetGammaLevel(gamma);
-
Print(" Established requested video parameters.\n\n");
}