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
@@ -912,7 +912,7 @@ struct SpriteAlignerWindow : Window {
|
||||
}
|
||||
|
||||
DrawPixelInfo new_dpi;
|
||||
if (!FillDrawPixelInfo(&new_dpi, ir.left, ir.top, ir.Width(), ir.Height())) break;
|
||||
if (!FillDrawPixelInfo(&new_dpi, ir)) break;
|
||||
AutoRestoreBackup dpi_backup(_cur_dpi, &new_dpi);
|
||||
|
||||
DrawSprite(this->current_sprite, PAL_NONE, x, y, nullptr, SpriteAlignerWindow::zoom);
|
||||
|
Reference in New Issue
Block a user