|
@@ -78,7 +78,6 @@ public class Margin : Adornment
|
|
|
/// <inheritdoc />
|
|
|
protected override bool OnClearingViewport ()
|
|
|
{
|
|
|
- return ColorScheme is null;
|
|
|
if (Thickness == Thickness.Empty)
|
|
|
{
|
|
|
return true;
|
|
@@ -98,24 +97,24 @@ public class Margin : Adornment
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
- /// <inheritdoc />
|
|
|
- protected override bool OnDrawingContent ()
|
|
|
- {
|
|
|
- Rectangle screen = FrameToScreen();
|
|
|
- for (int r = 0; r < screen.Height; r++)
|
|
|
- {
|
|
|
- for (int c = 0; c < screen.Width; c++)
|
|
|
- {
|
|
|
- Driver?.Move (c, r);
|
|
|
-
|
|
|
- if (Driver?.Contents is { } && c < Driver.Contents.GetLength (1) && r < Driver.Contents.GetLength (0))
|
|
|
- {
|
|
|
- Driver.AddRune (Driver.Contents [r, c].Rune);
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- return true;
|
|
|
- }
|
|
|
+ ///// <inheritdoc />
|
|
|
+ //protected override bool OnDrawingContent ()
|
|
|
+ //{
|
|
|
+ // Rectangle screen = FrameToScreen();
|
|
|
+ // for (int r = 0; r < screen.Height; r++)
|
|
|
+ // {
|
|
|
+ // for (int c = 0; c < screen.Width; c++)
|
|
|
+ // {
|
|
|
+ // Driver?.Move (c, r);
|
|
|
+
|
|
|
+ // if (Driver?.Contents is { } && c < Driver.Contents.GetLength (1) && r < Driver.Contents.GetLength (0))
|
|
|
+ // {
|
|
|
+ // Driver.AddRune (Driver.Contents [r, c].Rune);
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // return true;
|
|
|
+ //}
|
|
|
|
|
|
///// <inheritdoc />
|
|
|
////protected override bool OnDrawSubviews (Rectangle viewport) { return true; }
|