Skip to content

Commit

Permalink
Do not draw above image
Browse files Browse the repository at this point in the history
When the page/image is not selected the black outline was drawing onto
the top and left pixels of the image.
  • Loading branch information
xZise committed Jul 17, 2023
1 parent c18f66f commit 312e2b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NAPS2.Lib.WinForms/EtoForms/WinForms/WinFormsListView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ private void CustomRenderItem(object? sender, DrawListViewItemEventArgs e)
// Draw border
if (!e.Item.Selected)
{
e.Graphics.DrawRectangle(DefaultPen, x, y, width, height);
e.Graphics.DrawRectangle(DefaultPen, x - 1, y - 1, width + 1, height + 1);
}
}

Expand Down

0 comments on commit 312e2b6

Please sign in to comment.