Lua - change drawBox so that the line color is an optional parameter (white by default)

This commit is contained in:
adelikat 2012-10-13 20:57:02 +00:00
parent c29a074ea8
commit 012d9007af
1 changed files with 2 additions and 2 deletions

View File

@ -739,7 +739,7 @@ namespace BizHawk.MultiClient
}
}
public void gui_drawBox(object X, object Y, object X2, object Y2, object line, object background = null)
public void gui_drawBox(object X, object Y, object X2, object Y2, object line = null, object background = null)
{
using (var g = GetGraphics())
{
@ -770,7 +770,7 @@ namespace BizHawk.MultiClient
int_y -= int_height;
}
g.DrawRectangle(GetPen(line), int_x, int_y, int_width, int_height);
g.DrawRectangle(GetPen(line ?? "white"), int_x, int_y, int_width, int_height);
if (background != null)
{
g.FillRectangle(GetBrush(background), int_x, int_y, int_width, int_height);