mirror of https://github.com/velour/catbase.git
meme: make bully position default to botright even for bad configs
This commit is contained in:
parent
9617e02d72
commit
3e8a474f13
|
@ -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":
|
||||
|
|
Loading…
Reference in New Issue