diff --git a/src/FancyMouse/Common/Helpers/DrawingHelper.cs b/src/FancyMouse/Common/Helpers/DrawingHelper.cs index efdb573..18138b0 100644 --- a/src/FancyMouse/Common/Helpers/DrawingHelper.cs +++ b/src/FancyMouse/Common/Helpers/DrawingHelper.cs @@ -92,7 +92,7 @@ private static void DrawRaisedBorder( Graphics graphics, BoxStyle boxStyle, BoxBounds boxBounds) { var borderStyle = boxStyle.BorderStyle; - if ((borderStyle.Horizontal == 0) && (borderStyle.Vertical == 0)) + if ((borderStyle.Horizontal == 0) || (borderStyle.Vertical == 0)) { return; } diff --git a/src/FancyMouse/Common/Models/Drawing/BoxBounds.cs b/src/FancyMouse/Common/Models/Drawing/BoxBounds.cs index 9903375..82d141d 100644 --- a/src/FancyMouse/Common/Models/Drawing/BoxBounds.cs +++ b/src/FancyMouse/Common/Models/Drawing/BoxBounds.cs @@ -22,7 +22,7 @@ public sealed class BoxBounds */ - public BoxBounds( + internal BoxBounds( RectangleInfo outerBounds, RectangleInfo marginBounds, RectangleInfo borderBounds, diff --git a/src/FancyMouse/Common/Models/Layout/PreviewLayout.cs b/src/FancyMouse/Common/Models/Layout/PreviewLayout.cs index c4353a6..1918640 100644 --- a/src/FancyMouse/Common/Models/Layout/PreviewLayout.cs +++ b/src/FancyMouse/Common/Models/Layout/PreviewLayout.cs @@ -10,7 +10,7 @@ public sealed class Builder { public Builder() { - this.Screens = new List(); + this.Screens = new(); this.ScreenshotBounds = new(); } @@ -72,7 +72,7 @@ public PreviewLayout Build() public PreviewLayout( PreviewStyle previewStyle, RectangleInfo virtualScreen, - IList screens, + List screens, int activatedScreenIndex, RectangleInfo formBounds, BoxBounds previewBounds,