From 3c913ac253211cdadeae4b240ed5913be39921dd Mon Sep 17 00:00:00 2001 From: peter1138 Date: Sun, 15 Nov 2009 18:39:22 +0000 Subject: (svn r18103) -Codechange: Base content window detail title height on font height. --- src/network/network_content_gui.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/network/network_content_gui.cpp b/src/network/network_content_gui.cpp index 6f15cbc0a..06ed8a047 100644 --- a/src/network/network_content_gui.cpp +++ b/src/network/network_content_gui.cpp @@ -476,11 +476,13 @@ public: */ void DrawDetails(const Rect &r) const { - static const int DETAIL_TITLE_HEIGHT = 50; ///< Number of pixels for the title static const int DETAIL_LEFT = 5; ///< Number of pixels at the left static const int DETAIL_RIGHT = 5; ///< Number of pixels at the right static const int DETAIL_TOP = 5; ///< Number of pixels at the top + /* Height for the title banner */ + int DETAIL_TITLE_HEIGHT = 5 * FONT_HEIGHT_NORMAL; + /* Create the nice grayish rectangle at the details top */ GfxFillRect(r.left + 1, r.top + 1, r.right - 1, r.top + DETAIL_TITLE_HEIGHT, 157); DrawString(r.left + WD_INSET_LEFT, r.right - WD_INSET_RIGHT, r.top + FONT_HEIGHT_NORMAL + WD_INSET_TOP, STR_CONTENT_DETAIL_TITLE, TC_FROMSTRING, SA_CENTER); -- cgit v1.2.3-54-g00ecf