gui1: Elide pointless assignment

Found by cppcheck.
This commit is contained in:
Ignacio R. Morelle 2015-07-06 22:33:45 -03:00
parent cfdeac8b6a
commit 40eee388b0

View file

@ -287,8 +287,7 @@ void dialog_frame::draw_background()
SDL_Rect dialog_frame::draw_title(CVideo* video)
{
SDL_Rect rect = {0, 0, 10000, 10000};
rect = screen_area();
SDL_Rect rect = screen_area();
return font::draw_text(video, rect, font::SIZE_LARGE, font::TITLE_COLOR,
title_, dim_.title.x, dim_.title.y, false, TTF_STYLE_BOLD);
}