From dac5158376875636306610365dc1b9820a18a277 Mon Sep 17 00:00:00 2001 From: Aki Date: Wed, 16 Mar 2022 21:30:41 +0100 Subject: Removed gamma level management from Game and Starshatter classes --- Stars45/Game.cpp | 25 +------------------------ 1 file changed, 1 insertion(+), 24 deletions(-) (limited to 'Stars45/Game.cpp') 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"); } -- cgit v1.1