diff --git a/main.go b/main.go index a16945a..f868bbc 100644 --- a/main.go +++ b/main.go @@ -118,8 +118,9 @@ func updateImage(file string, img *tk.LabelWidget) { return } i = imaging.Fit(i, - must(strconv.Atoi(tk.WinfoScreenWidth(tk.App))), - must(strconv.Atoi(tk.WinfoScreenHeight(tk.App))), + // -50 to give some space to breathe around the edges + must(strconv.Atoi(tk.WinfoScreenWidth(tk.App)))-50, + must(strconv.Atoi(tk.WinfoScreenHeight(tk.App)))-50, imaging.Linear, ) repaint(img, filepath.Base(file), tk.Data(i))