diff options
author | Aki <please@ignore.pl> | 2022-03-16 21:30:41 +0100 |
---|---|---|
committer | Aki <please@ignore.pl> | 2022-03-16 21:30:41 +0100 |
commit | dac5158376875636306610365dc1b9820a18a277 (patch) | |
tree | c0afe12f4679457b4302598f3b5d2f9df28cea44 /Stars45/Game.cpp | |
parent | 2e5d0eb1eecc52b20d1e9f7a3ce0317b851442c4 (diff) | |
download | starshatter-dac5158376875636306610365dc1b9820a18a277.zip starshatter-dac5158376875636306610365dc1b9820a18a277.tar.gz starshatter-dac5158376875636306610365dc1b9820a18a277.tar.bz2 |
Removed gamma level management from Game and Starshatter classes
Diffstat (limited to 'Stars45/Game.cpp')
-rw-r--r-- | Stars45/Game.cpp | 25 |
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"); } |