From 8857a59c3818c1ce6eeb6c054cb5543bfc35c087 Mon Sep 17 00:00:00 2001 From: Ira Rice Date: Tue, 3 Feb 2009 14:38:40 -0700 Subject: Fixed up table class to allow for different background colors, as well as defining whether the given table is opaque or not. Signed-off-by: Ira Rice --- src/gui/setup_players.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/gui/setup_players.cpp') diff --git a/src/gui/setup_players.cpp b/src/gui/setup_players.cpp index a4582b48..c8546b4b 100644 --- a/src/gui/setup_players.cpp +++ b/src/gui/setup_players.cpp @@ -223,12 +223,13 @@ Setup_Players::Setup_Players(): mIgnoreActionChoicesBox(new gcn::DropDown(new IgnoreChoicesListModel())) { setOpaque(false); + mPlayerTable->setOpaque(false); int table_width = NAME_COLUMN_WIDTH + RELATION_CHOICE_COLUMN_WIDTH; mPlayerTableTitleModel->fixColumnWidth(NAME_COLUMN, NAME_COLUMN_WIDTH); mPlayerTableTitleModel->fixColumnWidth(RELATION_CHOICE_COLUMN, RELATION_CHOICE_COLUMN_WIDTH); - mPlayerTitleTable->setDimension(gcn::Rectangle(10, 10, table_width, 10)); + mPlayerTitleTable->setDimension(gcn::Rectangle(10, 10, table_width - 1, 10)); mPlayerTitleTable->setBackgroundColor(gcn::Color(0xbf, 0xbf, 0xbf)); for (int i = 0; i < COLUMNS_NR; i++) -- cgit v1.2.3-70-g09d2