mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-01 09:47:22 +13:00
Fixed line drawing on horizontal splitter
This commit is contained in:
parent
7cae61c18c
commit
c2e0dd7333
1 changed files with 10 additions and 2 deletions
|
@ -41,8 +41,16 @@ protected override void OnPaint(PaintEventArgs pevent)
|
|||
|
||||
using (Pen pen = new Pen(SplitterColor))
|
||||
{
|
||||
g.DrawLine(pen, rect.Left, rect.Top, rect.Left, rect.Bottom - 1);
|
||||
g.DrawLine(pen, rect.Right - 1, rect.Top, rect.Right - 1, rect.Bottom - 1);
|
||||
if (Orientation == Orientation.Horizontal)
|
||||
{
|
||||
g.DrawLine(pen, rect.Left, rect.Top, rect.Right - 1, rect.Top);
|
||||
g.DrawLine(pen, rect.Left, rect.Bottom - 1, rect.Right - 1, rect.Bottom - 1);
|
||||
}
|
||||
else if (Orientation == Orientation.Vertical)
|
||||
{
|
||||
g.DrawLine(pen, rect.Left, rect.Top, rect.Left, rect.Bottom - 1);
|
||||
g.DrawLine(pen, rect.Right - 1, rect.Top, rect.Right - 1, rect.Bottom - 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue