(svn r20043) -Codechange: Introduce vertical alignment for DrawStringMultiLine().

This commit is contained in:
alberth
2010-07-02 13:53:05 +00:00
parent 3d329beb1b
commit 22b9bc5157
20 changed files with 80 additions and 74 deletions

View File

@@ -394,7 +394,7 @@ struct NewGRFWindow : public QueryStringBaseWindow {
case SNGRFS_NEWGRF_INFO_TITLE:
/* Create the nice grayish rectangle at the details top. */
GfxFillRect(r.left + 1, r.top + 1, r.right - 1, r.bottom - 1, 157);
DrawString(r.left, r.right, (r.top + r.bottom - FONT_HEIGHT_NORMAL) / 2, STR_NEWGRF_SETTINGS_INFO_TITLE, TC_FROMSTRING, SA_CENTER);
DrawString(r.left, r.right, (r.top + r.bottom - FONT_HEIGHT_NORMAL) / 2, STR_NEWGRF_SETTINGS_INFO_TITLE, TC_FROMSTRING, SA_HOR_CENTER);
break;
case SNGRFS_NEWGRF_INFO: {