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
|
w, h := bullyImg.Bounds().Max.X, bullyImg.Bounds().Max.Y
|
||||||
|
|
||||||
pt := image.Point{}
|
pt := image.Point{srcSz.X - w, srcSz.Y - h}
|
||||||
switch position {
|
switch position {
|
||||||
case "botright":
|
|
||||||
pt = image.Point{srcSz.X - w, srcSz.Y - h}
|
|
||||||
case "botleft":
|
case "botleft":
|
||||||
pt = image.Point{0, srcSz.Y - h}
|
pt = image.Point{0, srcSz.Y - h}
|
||||||
case "topright":
|
case "topright":
|
||||||
|
|
Loading…
Reference in New Issue