Input Roll - more avoiding calculated fields in loops

This commit is contained in:
adelikat 2015-09-05 15:44:08 -04:00
parent ed4ccdbfc6
commit a85c60e716
1 changed files with 5 additions and 2 deletions

View File

@ -399,9 +399,11 @@ namespace BizHawk.Client.EmuHawk
private void DrawBg(PaintEventArgs e, List<RollColumn> visibleColumns)
{
if (UseCustomBackground && QueryItemBkColor != null)
{
DoBackGroundCallback(e, visibleColumns);
}
if (GridLines)
if (GridLines && false)
{
Gdi.SetSolidPen(SystemColors.ControlLight);
if (HorizontalOrientation)
@ -423,6 +425,7 @@ namespace BizHawk.Client.EmuHawk
{
// Columns
int y = ColumnHeight + 1;
int? totalColWidth = TotalColWidth;
foreach (var column in visibleColumns)
{
int x = column.Left.Value - HBar.Value;
@ -431,7 +434,7 @@ namespace BizHawk.Client.EmuHawk
if (visibleColumns.Any())
{
Gdi.Line(TotalColWidth.Value - HBar.Value, y, TotalColWidth.Value - HBar.Value, Height - 1);
Gdi.Line(totalColWidth.Value - HBar.Value, y, totalColWidth.Value - HBar.Value, Height - 1);
}
// Rows