summaryrefslogtreecommitdiff
path: root/src/group_gui.cpp
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2010-05-22 08:50:27 +0000
committeralberth <alberth@openttd.org>2010-05-22 08:50:27 +0000
commit9f15e284609494e4b42d39bf51d912dadefb6849 (patch)
treed5411c74182c612cb06bff95a8774437a6395a5b /src/group_gui.cpp
parent393134ed6962b4297e0ac78c24b2f30872c52997 (diff)
downloadopenttd-9f15e284609494e4b42d39bf51d912dadefb6849.tar.xz
(svn r19878) -Fix [FX#3851]: Default vehicle group texts were drawn one pixel too low (sbr).
Diffstat (limited to 'src/group_gui.cpp')
-rw-r--r--src/group_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/group_gui.cpp b/src/group_gui.cpp
index 3ce991bee..94e5ac942 100644
--- a/src/group_gui.cpp
+++ b/src/group_gui.cpp
@@ -381,12 +381,12 @@ public:
{
switch (widget) {
case GRP_WIDGET_ALL_VEHICLES:
- DrawString(r.left + WD_FRAMERECT_LEFT + 8, r.right - WD_FRAMERECT_RIGHT - 8, r.top + WD_MATRIX_TOP,
+ DrawString(r.left + WD_FRAMERECT_LEFT + 8, r.right - WD_FRAMERECT_RIGHT - 8, r.top + WD_FRAMERECT_TOP + 1,
STR_GROUP_ALL_TRAINS + this->vehicle_type, IsAllGroupID(this->group_sel) ? TC_WHITE : TC_BLACK);
break;
case GRP_WIDGET_DEFAULT_VEHICLES:
- DrawString(r.left + WD_FRAMERECT_LEFT + 8, r.right - WD_FRAMERECT_RIGHT - 8, r.top + WD_MATRIX_TOP,
+ DrawString(r.left + WD_FRAMERECT_LEFT + 8, r.right - WD_FRAMERECT_RIGHT - 8, r.top + WD_FRAMERECT_TOP + 1,
STR_GROUP_DEFAULT_TRAINS + this->vehicle_type, IsDefaultGroupID(this->group_sel) ? TC_WHITE : TC_BLACK);
break;