summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2009-11-15 18:39:22 +0000
committerpeter1138 <peter1138@openttd.org>2009-11-15 18:39:22 +0000
commit3c913ac253211cdadeae4b240ed5913be39921dd (patch)
tree4d45d40d68b27d4011511c573181dc1bb634b007
parentc71e3548d7fb60f9d4560bfccbfb088da8909ec1 (diff)
downloadopenttd-3c913ac253211cdadeae4b240ed5913be39921dd.tar.xz
(svn r18103) -Codechange: Base content window detail title height on font height.
-rw-r--r--src/network/network_content_gui.cpp4
1 files changed, 3 insertions, 1 deletions
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);