Made color_adjustment_resetter reset ToD
This is the purpose of its only use, in the editor.
This commit is contained in:
parent
8b98e82b34
commit
495a6bd5df
1 changed files with 3 additions and 2 deletions
|
@ -20,6 +20,7 @@
|
|||
#define GETTEXT_DOMAIN "wesnoth-lib"
|
||||
|
||||
#include "config.hpp"
|
||||
#include "display.hpp"
|
||||
#include "filesystem.hpp"
|
||||
#include "game_config.hpp"
|
||||
#include "image.hpp"
|
||||
|
@ -701,13 +702,13 @@ void set_color_adjustment(int r, int g, int b)
|
|||
}
|
||||
|
||||
color_adjustment_resetter::color_adjustment_resetter()
|
||||
: r_(red_adjust), g_(green_adjust), b_(blue_adjust)
|
||||
: r_(red_adjust), g_(green_adjust), b_(blue_adjust)
|
||||
{
|
||||
}
|
||||
|
||||
void color_adjustment_resetter::reset()
|
||||
{
|
||||
set_color_adjustment(r_, g_, b_);
|
||||
display::get_singleton()->adjust_color_overlay(r_, g_, b_);
|
||||
}
|
||||
|
||||
void set_team_colors(const std::vector<std::string>* colors)
|
||||
|
|
Loading…
Add table
Reference in a new issue