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
@@ -101,7 +101,7 @@ void DrawTrainImage(const Train *v, const Rect &r, VehicleID selection, EngineIm
|
||||
int highlight_r = 0;
|
||||
int max_width = r.Width();
|
||||
|
||||
if (!FillDrawPixelInfo(&tmp_dpi, r.left, r.top, r.Width(), r.Height())) return;
|
||||
if (!FillDrawPixelInfo(&tmp_dpi, r)) return;
|
||||
|
||||
{
|
||||
AutoRestoreBackup dpi_backup(_cur_dpi, &tmp_dpi);
|
||||
|
Reference in New Issue
Block a user