Remove three unused parameters.

This commit is contained in:
Guillaume Melquiond 2004-11-22 21:39:14 +00:00
parent a740ded9d0
commit 4c67349bc4
4 changed files with 4 additions and 5 deletions

View file

@ -2153,7 +2153,7 @@ const theme& display::get_theme() const
return theme_;
}
const theme::menu* display::menu_pressed(int mousex, int mousey, bool button_pressed)
const theme::menu* display::menu_pressed()
{
for(std::vector<gui::button>::iterator i = buttons_.begin(); i != buttons_.end(); ++i) {

View file

@ -302,7 +302,7 @@ public:
const theme& get_theme() const;
const theme::menu* menu_pressed(int mousex, int mousey, bool button_pressed);
const theme::menu* menu_pressed();
void add_observer(const std::string& name);
void remove_observer(const std::string& name);

View file

@ -1201,8 +1201,7 @@ void map_editor::main_loop() {
update_mouse_over_hexes(cur_hex);
last_brush_size = brush_.selected_brush_size();
}
const theme::menu* const m = gui_.menu_pressed(mousex, mousey,
mouse_flags & SDL_BUTTON_LMASK);
const theme::menu* const m = gui_.menu_pressed();
if (m != NULL) {
const SDL_Rect& menu_loc = m->location(gui_.screen_area());
const int x = menu_loc.x + 1;

View file

@ -158,7 +158,7 @@ void turn_info::turn_slice()
int mousex, mousey;
const int mouse_flags = SDL_GetMouseState(&mousex,&mousey);
const theme::menu* const m = gui_.menu_pressed(mousex,mousey,true);
const theme::menu* const m = gui_.menu_pressed();
if(m != NULL) {
const SDL_Rect& menu_loc = m->location(gui_.screen_area());
show_menu(m->items(),menu_loc.x+1,menu_loc.y + menu_loc.h + 1,false);