From 3e8a474f13b9145330fd6a877a54eb778787484a Mon Sep 17 00:00:00 2001 From: Chris Sexton Date: Mon, 2 Nov 2020 10:55:09 -0500 Subject: [PATCH] meme: make bully position default to botright even for bad configs --- plugins/meme/meme.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/plugins/meme/meme.go b/plugins/meme/meme.go index 27e7f96..3409d33 100644 --- a/plugins/meme/meme.go +++ b/plugins/meme/meme.go @@ -447,10 +447,8 @@ func (p *MemePlugin) applyBully(img, bullyImg image.Image) image.Image { w, h := bullyImg.Bounds().Max.X, bullyImg.Bounds().Max.Y - pt := image.Point{} + pt := image.Point{srcSz.X - w, srcSz.Y - h} switch position { - case "botright": - pt = image.Point{srcSz.X - w, srcSz.Y - h} case "botleft": pt = image.Point{0, srcSz.Y - h} case "topright":