Codechange: Prefer suggested widget padding.

This commit is contained in:
Peter Nelson
2021-05-03 16:56:02 +01:00
committed by PeterN
parent 0108e9f387
commit b6ed595176
18 changed files with 38 additions and 36 deletions

View File

@@ -721,8 +721,8 @@ struct TooltipsWindow : public Window
size->height = GetStringHeight(this->string_id, size->width);
/* Increase slightly to have some space around the box. */
size->width += 2 + WD_FRAMERECT_LEFT + WD_FRAMERECT_RIGHT;
size->height += 2 + WD_FRAMERECT_TOP + WD_FRAMERECT_BOTTOM;
size->width += 2 + padding.width;
size->height += 2 + padding.height;
}
void DrawWidget(const Rect &r, int widget) const override