(svn r19438) -Fix [FS#3700]: Custom group names are misaligned with default ones when using rtl languages (sbr)

This commit is contained in:
rubidium 2010-03-16 20:15:38 +00:00
parent ca5f1adbf0
commit 6003b9f211

View File

@ -400,7 +400,7 @@ public:
/* draw the selected group in white, else we draw it in black */ /* draw the selected group in white, else we draw it in black */
SetDParam(0, g->index); SetDParam(0, g->index);
DrawString(r.left + WD_FRAMERECT_LEFT + 8, r.right - WD_FRAMERECT_RIGHT, y1, STR_GROUP_NAME, (this->group_sel == g->index) ? TC_WHITE : TC_BLACK); DrawString(r.left + WD_FRAMERECT_LEFT + 8, r.right - WD_FRAMERECT_RIGHT - 8, y1, STR_GROUP_NAME, (this->group_sel == g->index) ? TC_WHITE : TC_BLACK);
/* draw the number of vehicles of the group */ /* draw the number of vehicles of the group */
SetDParam(0, g->num_vehicle); SetDParam(0, g->num_vehicle);