Skip to content

Commit

Permalink
fix: move rect correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
maaslalani committed Jan 12, 2024
1 parent c6604cc commit c987597
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ func main() {
if config.Border {
addOutline(rect)

if config.Margin[left] <= 0 && config.Margin[top] <= 0 && !config.Shadow {
move(rect, 0.5, 0.5)
}

// NOTE: necessary so that we don't clip the outline.
w += 1
h += 1
Expand Down

0 comments on commit c987597

Please sign in to comment.