Input Roll - implement the gridlines property

This commit is contained in:
adelikat 2014-08-23 23:03:19 +00:00
parent 5dc7327c1f
commit 338dc124bd
1 changed files with 33 additions and 31 deletions

View File

@ -87,7 +87,6 @@ namespace BizHawk.Client.EmuHawk
[Category("Behavior")]
public int CellPadding { get; set; }
// TODO: implement this
/// <summary>
/// Displays grid lines around cells
/// </summary>
@ -653,6 +652,8 @@ namespace BizHawk.Client.EmuHawk
Gdi.SetSolidPen(Color.Black);
Gdi.DrawRectangle(startPoint.X, startPoint.Y, Width, Height);
if (GridLines)
{
Gdi.SetSolidPen(SystemColors.ControlLight);
if (HorizontalOrientation)
{
@ -692,6 +693,7 @@ namespace BizHawk.Client.EmuHawk
Gdi.Line(1, (i * CellHeight) + 1, Width - 2, (i * CellHeight) + 1);
}
}
}
if (QueryItemBkColor != null && UseCustomBackground)
{