Remove unused parameters.
This commit is contained in:
parent
fcea56052d
commit
87df95d302
2 changed files with 6 additions and 7 deletions
|
@ -723,12 +723,12 @@ void display::draw_sidebar()
|
|||
}
|
||||
|
||||
if(invalidateGameStatus_) {
|
||||
draw_game_status(mapx()+SideBarGameStatus_x,SideBarGameStatus_y);
|
||||
draw_game_status();
|
||||
invalidateGameStatus_ = false;
|
||||
}
|
||||
}
|
||||
|
||||
void display::draw_game_status(int x, int y)
|
||||
void display::draw_game_status()
|
||||
{
|
||||
if(teams_.empty())
|
||||
return;
|
||||
|
@ -738,7 +738,7 @@ void display::draw_game_status(int x, int y)
|
|||
}
|
||||
}
|
||||
|
||||
void display::draw_image_for_report(surface& img, surface& surf, SDL_Rect& rect)
|
||||
void display::draw_image_for_report(surface& img, SDL_Rect& rect)
|
||||
{
|
||||
SDL_Rect visible_area = get_non_transperant_portion(img);
|
||||
SDL_Rect target = rect;
|
||||
|
@ -864,7 +864,7 @@ void display::draw_report(reports::TYPE report_num)
|
|||
area.y = y;
|
||||
area.w = minimum<int>(rect.w + rect.x - x, img->w);
|
||||
area.h = minimum<int>(rect.h + rect.y - y, img->h);
|
||||
draw_image_for_report(img,surf,area);
|
||||
draw_image_for_report(img, area);
|
||||
|
||||
if(area.h > tallest) tallest = area.h;
|
||||
x += area.w;
|
||||
|
|
|
@ -365,14 +365,13 @@ private:
|
|||
|
||||
void draw_sidebar();
|
||||
void draw_minimap(int x, int y, int w, int h);
|
||||
void draw_game_status(int x, int y);
|
||||
void draw_game_status();
|
||||
|
||||
SDL_Rect gameStatusRect_;
|
||||
SDL_Rect unitDescriptionRect_;
|
||||
SDL_Rect unitProfileRect_;
|
||||
|
||||
void draw_image_for_report(surface& img,
|
||||
surface& surf, SDL_Rect& rect);
|
||||
void draw_image_for_report(surface& img, SDL_Rect& rect);
|
||||
void draw_report(reports::TYPE report_num);
|
||||
SDL_Rect reportRects_[reports::NUM_REPORTS];
|
||||
surface reportSurfaces_[reports::NUM_REPORTS];
|
||||
|
|
Loading…
Add table
Reference in a new issue