Codechange: Add Rect version of FillDrawPixelInfo().
This simplifies most callers as they longer have to split out a rect.
This commit is contained in:

committed by
Peter Nelson

parent
111b4e6060
commit
313ee13e5f
@@ -153,6 +153,11 @@ void CheckBlitter();
|
||||
|
||||
bool FillDrawPixelInfo(DrawPixelInfo *n, int left, int top, int width, int height);
|
||||
|
||||
static inline bool FillDrawPixelInfo(DrawPixelInfo *n, const Rect &r)
|
||||
{
|
||||
return FillDrawPixelInfo(n, r.left, r.top, r.Width(), r.Height());
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine where to draw a centred object inside a widget.
|
||||
* @param min The top or left coordinate.
|
||||
|
Reference in New Issue
Block a user