Codechange: Call shorter variant of DrawFrameRect and GfxFillRect. (#14647)

Pass rect instead of breaking it up when possible.
This commit is contained in:
Peter Nelson
2025-09-21 20:30:59 +01:00
committed by dP
parent a660bedc67
commit 18bf0e2b58
2 changed files with 11 additions and 11 deletions

View File

@@ -60,8 +60,8 @@ public:
void DrawWidget(const Rect &r, WidgetID) const override
{
GfxFillRect(r.left, r.top, r.right, r.bottom, PixelColour{4}, FILLRECT_OPAQUE);
GfxFillRect(r.left, r.top, r.right, r.bottom, PixelColour{0}, FILLRECT_CHECKER);
GfxFillRect(r, PixelColour{4}, FILLRECT_OPAQUE);
GfxFillRect(r, PixelColour{0}, FILLRECT_CHECKER);
}
};