From 4e6a5a9fa24e86f97cc6af939bd07aafa89cd9b8 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Thu, 29 Jul 2021 16:33:49 +0900 Subject: [PATCH] internal/atlas: Bug fix: Wrong screenshot size Updates #1736 --- internal/atlas/image.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/atlas/image.go b/internal/atlas/image.go index e5cd447b8..1628a4b8c 100644 --- a/internal/atlas/image.go +++ b/internal/atlas/image.go @@ -730,7 +730,7 @@ func (i *Image) DumpScreenshot(path string, blackbg bool) error { backendsM.Lock() defer backendsM.Unlock() - return i.backend.restorable.Dump(path, blackbg, image.Rect(paddingSize, paddingSize, i.width-2*paddingSize, i.height-2*paddingSize)) + return i.backend.restorable.Dump(path, blackbg, image.Rect(paddingSize, paddingSize, paddingSize+i.width, paddingSize+i.height)) } func NewScreenFramebufferImage(width, height int) *Image {