Rework WidgetUtil sprite rendering helpers.

This commit is contained in:
Paul Chote
2021-07-22 21:43:14 +01:00
committed by reaperrr
parent 2e6f444285
commit 8e94e1d5ec
21 changed files with 54 additions and 53 deletions

View File

@@ -75,7 +75,7 @@ namespace OpenRA.Mods.Common.Widgets
checkType += "-disabled";
var offset = new float2(rect.Left + CheckOffset, rect.Top + CheckOffset);
WidgetUtils.DrawRGBA(ChromeProvider.GetImage("checkbox-bits", checkType), offset);
WidgetUtils.DrawSprite(ChromeProvider.GetImage("checkbox-bits", checkType), offset);
}
}