Make Wesnoth more compatible with C++0x (g++-4.5).

This commit is contained in:
Mark de Wever 2010-06-12 16:02:12 +00:00
parent 3e786b6a24
commit 5e3c022153

View File

@ -86,10 +86,12 @@ namespace gui{
if(box_ != NULL) { if(box_ != NULL) {
box_->set_volatile(true); box_->set_volatile(true);
const SDL_Rect rect = { const SDL_Rect rect = create_rect(
area.x + label_area.w + border_size*2, ypos, area.x + label_area.w + border_size * 2
textbox_width, box_->height() , ypos
}; , textbox_width
, box_->height());
box_->set_location(rect); box_->set_location(rect);
} }