diff --git a/video/Controls/SeekBar.cs b/video/Controls/SeekBar.cs index a336219d..e9dcc1e0 100644 --- a/video/Controls/SeekBar.cs +++ b/video/Controls/SeekBar.cs @@ -30,7 +30,7 @@ protected override void OnPaint(PaintEventArgs e){ brushBack.Color = Parent.BackColor; } - Rectangle rect = e.ClipRectangle; + Rectangle rect = new Rectangle(0, 0, Width, Height); Point cursor = PointToClient(Cursor.Position); int width = rect.Width-1; int progress = (int)(width*((double)Value/Maximum)); diff --git a/video/FormPlayer.cs b/video/FormPlayer.cs index f19f2114..e004b905 100644 --- a/video/FormPlayer.cs +++ b/video/FormPlayer.cs @@ -200,8 +200,8 @@ private void timerSync_Tick(object sender, EventArgs e){ int ownerWidth = rect.Right-rect.Left+1; int ownerHeight = rect.Bottom-rect.Top+1; - // roughly matches MinimumSize for client bounds - int minWidth = DpiScaled(332); + // roughly matches MinimumSize for client bounds, adjusted a bit for weirdness with higher DPI + int minWidth = DpiScaled(356); int minHeight = DpiScaled(386); if (NativeMethods.GetClientRect(ownerHandle, out NativeMethods.RECT clientSize)){