Codechange: Helpers to allow passing a Rect to some functions.

This commit is contained in:
Peter Nelson
2022-09-28 17:16:46 +01:00
committed by PeterN
parent eb4ba1991b
commit 17d1fe26c2
2 changed files with 42 additions and 0 deletions

View File

@@ -142,6 +142,12 @@ enum WidgetDrawDistances {
/* widget.cpp */
void DrawFrameRect(int left, int top, int right, int bottom, Colours colour, FrameFlags flags);
static inline void DrawFrameRect(const Rect &r, Colours colour, FrameFlags flags)
{
DrawFrameRect(r.left, r.top, r.right, r.bottom, colour, flags);
}
void DrawCaption(const Rect &r, Colours colour, Owner owner, TextColour text_colour, StringID str, StringAlignment align);
/* window.cpp */