give the image some space on for the border
This commit is contained in:
5
main.go
5
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))
|
||||
|
Reference in New Issue
Block a user