Skip to content

Commit

Permalink
Fix cell select on debug screen for controls consoles
Browse files Browse the repository at this point in the history
  • Loading branch information
Thraka committed Jul 24, 2019
1 parent 364a14f commit ab8713f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SadConsole/Debugging/CurrentScreen.cs
Expand Up @@ -465,7 +465,7 @@ public override void UpdateAndDraw(ControlBase control, TimeSpan time)

var cellRenderPosition = i.ToPoint(childControl.Surface.Width) + childControl.Position;

if (!scroller.SurfaceView.ViewPort.Contains(cellRenderPosition)) continue;
if (!scroller.SurfaceView.ViewPort.Contains(cellRenderPosition - new Point(1))) continue;

cell.CopyAppearanceTo(scroller.Surface[(cellRenderPosition - scroller.SurfaceView.ViewPort.Location).ToIndex(scroller.Surface.Width)]);
}
Expand Down

0 comments on commit ab8713f

Please sign in to comment.