Codechange: Add Rect version of FillDrawPixelInfo().

This simplifies most callers as they longer have to split out a rect.
This commit is contained in:
Peter Nelson
2023-12-19 23:21:12 +00:00
committed by Peter Nelson
parent 111b4e6060
commit 313ee13e5f
13 changed files with 25 additions and 20 deletions

View File

@@ -1543,7 +1543,7 @@ public:
case WID_SM_MAP: {
Rect ir = r.Shrink(WidgetDimensions::scaled.bevel);
DrawPixelInfo new_dpi;
if (!FillDrawPixelInfo(&new_dpi, ir.left, ir.top, ir.Width(), ir.Height())) return;
if (!FillDrawPixelInfo(&new_dpi, ir)) return;
this->DrawSmallMap(&new_dpi);
break;
}