(svn r20043) -Codechange: Introduce vertical alignment for DrawStringMultiLine().
This commit is contained in:
@@ -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: {
|
||||
|
Reference in New Issue
Block a user