Un-swap fill and stroke in forms.drawRectangle/LuaCanvas.drawRectangle

fixes 0a9d496ec; see #2772
This commit is contained in:
YoshiRulz 2021-06-06 13:45:59 +10:00
parent b3fdbe7463
commit dabd33c5f4
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
1 changed files with 2 additions and 2 deletions

View File

@ -283,7 +283,7 @@ namespace BizHawk.Client.EmuHawk
public void DrawRectangle(int x, int y, int width, int height, [LuaColorParam] object line = null, [LuaColorParam] object background = null)
{
var bg = TableHelper.SafeParseColor(line) ?? _defaultBackground;
var bg = TableHelper.SafeParseColor(background) ?? _defaultBackground;
var boxBackground = Graphics.FromImage(Image);
if (bg.HasValue)
{
@ -291,7 +291,7 @@ namespace BizHawk.Client.EmuHawk
boxBackground = Graphics.FromImage(Image);
}
boxBackground.DrawRectangle(GetPen(TableHelper.SafeParseColor(background) ?? _defaultForeground), x, y, width, height);
boxBackground.DrawRectangle(GetPen(TableHelper.SafeParseColor(line) ?? _defaultForeground), x, y, width, height);
}
public void DrawText(