Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2009-01-25 11:58:06 +0000
committerStijn Buys <ingar@osirion.org>2009-01-25 11:58:06 +0000
commit443a8dc2b49be6e1fa668f43a12bf5f886a1bdcd (patch)
tree6f3dc74acb5812a650b4787c5da3a45278ff3f80 /src/client
parent72e2c3648345c8cede9db6b3348a492639ab2766 (diff)
make the chat window the same size as the map window
Diffstat (limited to 'src/client')
-rw-r--r--src/client/view.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/client/view.cc b/src/client/view.cc
index d8346cb..86f9af0 100644
--- a/src/client/view.cc
+++ b/src/client/view.cc
@@ -239,12 +239,12 @@ void View::draw()
}
// reposition chat widget
- if (!view_chat->small_view()) {
- view_chat->set_location(font()->width(), view_devinfo->top() + view_devinfo->height() + font()->height());
- view_chat->set_size(width() - font()->width() * 16, height() - view_chat->top() - font()->height() * 8);
+ if (view_chat->small_view()) {
+ view_chat->set_size(width() - font()->width() * 8, font()->height() * 2);
+ view_chat->set_location(font()->width() * 4, height() - font()->height() * 4 - view_chat->height());
} else {
- view_chat->set_size(width() - font()->width() * 16, font()->height() * 2);
- view_chat->set_location(font()->width(), height() - font()->height() * 8 - view_chat->height());
+ view_chat->set_size(width() - font()->width() * 8, height() - font()->height() * 8);
+ view_chat->set_location(font()->width() * 4, font()->height() * 4);
}
view_chat->event_resize();