From 443a8dc2b49be6e1fa668f43a12bf5f886a1bdcd Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 25 Jan 2009 11:58:06 +0000 Subject: make the chat window the same size as the map window --- src/client/view.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/client/view.cc') 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(); -- cgit v1.2.3