InputRoll - simplify
This commit is contained in:
parent
120988eac4
commit
6a33085ddc
|
@ -93,8 +93,15 @@ namespace BizHawk.Client.EmuHawk
|
|||
|
||||
private void DrawColumnDrag(List<RollColumn> visibleColumns)
|
||||
{
|
||||
if (_columnDown?.Width > 0 && _columnDownMoved && _currentX.HasValue && _currentY.HasValue && IsHoveringOnColumnCell)
|
||||
if (!(_columnDown?.Width > 0)
|
||||
|| !_columnDownMoved
|
||||
|| !_currentX.HasValue
|
||||
|| !_currentY.HasValue
|
||||
|| !IsHoveringOnColumnCell)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
int columnWidth = _columnDown.Width;
|
||||
int columnHeight = CellHeight;
|
||||
if (HorizontalOrientation)
|
||||
|
@ -118,7 +125,6 @@ namespace BizHawk.Client.EmuHawk
|
|||
_renderer.PrepDrawString(Font, _foreColor);
|
||||
_renderer.DrawString(_columnDown.Text, new Rectangle(x1 + CellWidthPadding, y1 + textOffsetY, columnWidth, columnHeight));
|
||||
}
|
||||
}
|
||||
|
||||
private void DrawCellDrag(List<RollColumn> visibleColumns)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue